issuer field on prescription document
[confetti] / actions / update_prescription.sh
index a0d9371..aeb4993 100755 (executable)
@@ -31,6 +31,8 @@ if [ -z "$prescription" -o \! -f "$clientfile" ]; then
   exit 0
 fi
 
+[ "$_POST[issuer_select]" = "other" ] && _POST[issuer]="${_POST[issuer_other]}"
+
 # serialize POST array into file
 for key in ${(k)_POST}; do
   printf %s:%s\\n "$key" "${_POST[$key]//$BR/\\n}"