From: paul Date: Sun, 14 Feb 2016 19:19:52 +0000 (+0000) Subject: provide info about health insurance in card view X-Git-Url: https://git.plutz.net/?p=confetti;a=commitdiff_plain;h=891dee2c19bd2836e6818bffce1174f30c5d1ae5 provide info about health insurance in card view svn path=/trunk/; revision=79 --- diff --git a/actions/update_card.sh b/actions/update_card.sh index 1be1676..a810476 100755 --- a/actions/update_card.sh +++ b/actions/update_card.sh @@ -34,8 +34,10 @@ _POST[1N]="${_POST[1N]//;/,}" _POST[2N]="${_POST[2N]//;/,}" _POST[3N]="${_POST[3N]//;/,}" _POST[4N]="${_POST[4N]//;/,}" -[ -n "${_POST[hi_number]}" -o -n "${_POST[hi_company]}" ] \ -&& _POST[X-HEALTH-INSURANCE]="${_POST[hi_number]//;/,};${_POST[hi_company]//;/,}" + +[ "$_POST[hi_select]" = "list" ] && hi_company="${_POST[hi_company]}" || hi_company="${_POST[hi_other]}" +[ -n "${_POST[hi_company]}${_POST[hi_number]}${_POST[hi_status]}" ] \ +&& _POST[X-HEALTH-INSURANCE]="${hi_company//;/,};${_POST[hi_number]//;/,};${_POST[hi_status]//;/,}" sed -r 's;$;\r;' >"$tempfile" <$(l10n BDAY) - + $(if [ -n "$values[SOUND]" ]; then echo '