]> git.plutz.net Git - confetti/blobdiff - actions/update_prescription.sh
syntax cleanup
[confetti] / actions / update_prescription.sh
index 68cb7fdc5082b66bfd41699f9a610cc5829e2025..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}"
@@ -50,4 +52,4 @@ case "${_POST[action]}" in
     ;;
 esac
 
-redirect "?p=prescriptions&client=${client}"
+redirect "?p=prescriptions&client=${client}#${prescription}"