]> git.plutz.net Git - confetti/blobdiff - actions/update_prescription.sh
issuer field on prescription document
[confetti] / actions / update_prescription.sh
index a0d9371b2849400ae6a843ae0dd9ac5b089591b1..aeb499382eeda9c1bad196421f16f898d0d5fccb 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}"