###Scripts version 2009###

This commit is contained in:
castro-fidel
2021-09-05 14:47:21 +02:00
parent cb7ad7ec30
commit 7eec1f9086
5 changed files with 21 additions and 23 deletions

View File

@ -606,10 +606,9 @@ pw_gui_for_edit_db () {
unset ADD_CHK_BOX_EDIT_DB
edit_db_field_add () {
for int_to_boole in $@ ; do
if [ "${!int_to_boole}" == "1" ] ; then
export ${int_to_boole}="TRUE"
else
export ${int_to_boole}="FALSE"
if [ "${!int_to_boole}" == "1" ]
then export ${int_to_boole}="TRUE"
else export ${int_to_boole}="FALSE"
fi
ADD_CHK_BOX_EDIT_DB="${ADD_CHK_BOX_EDIT_DB} --field="${int_to_boole}:CHK" "${!int_to_boole}""
done
@ -628,10 +627,9 @@ pw_gui_for_edit_db () {
edit_db_field_read () {
for boole_to_int in $@ ; do
export ${boole_to_int}=${output_yad_edit_db[$bool_from_yad]}
if [ "${!boole_to_int}" == "TRUE" ] ; then
export ${boole_to_int}="1"
else
export ${boole_to_int}="0"
if [ "${!boole_to_int}" == "TRUE" ]
then export ${boole_to_int}="1"
else export ${boole_to_int}="0"
fi
export bool_from_yad=$(( ${bool_from_yad} + 1 ))
done