X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=actions%2Fupdate_prescription.sh;h=aeb499382eeda9c1bad196421f16f898d0d5fccb;hp=a0d9371b2849400ae6a843ae0dd9ac5b089591b1;hb=957f0ced0095d421006a0dbc68ef9be8a4325514;hpb=015242823eb4a79cf615bef6951b0af6bd0a5b01 diff --git a/actions/update_prescription.sh b/actions/update_prescription.sh index a0d9371..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}"