X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=actions%2Fupdate_prescription.sh;h=aeb499382eeda9c1bad196421f16f898d0d5fccb;hp=68cb7fdc5082b66bfd41699f9a610cc5829e2025;hb=3b300b0aa4e096f13cdc157b9c703b42d838b23b;hpb=afdc06688cc51a168011da48adbafcba238d3ae1 diff --git a/actions/update_prescription.sh b/actions/update_prescription.sh index 68cb7fd..aeb4993 100755 --- a/actions/update_prescription.sh +++ b/actions/update_prescription.sh @@ -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}"