I use EmbedPerl with MySQL for developing. I think that there is some problem :
-------------------
[$ if ($fdat{op} eq "tele2") $]
[- $my_details->set_alerting(\%fdat) -] [# update some field from database
#] [$ endif $]
[- $details = $my_details->get_alerting; -]
[+ $details->[0] +] [# returns always right result #]
...
<form ...>
...
<input type="checkbox" name="text_mobile_alert" [$ if ($details->[0] & 1)
$]checked[$ endif $]> Blah-Blah
...
</form>
-------------------
In the following example executing function get_alerting from module return
array with 1 element and its always what must be. But the problem is that
condition in later code (checkbox only) don't work correct. In the example
above the result is always not checked input box when $fdat{op} is set to
"tele2" and always in correct state if not. In both cases the value of
$details->[0] is correct. Any ideas?
--
Dimitar Peikov
-------------------
[$ if ($fdat{op} eq "tele2") $]
[- $my_details->set_alerting(\%fdat) -] [# update some field from database
#] [$ endif $]
[- $details = $my_details->get_alerting; -]
[+ $details->[0] +] [# returns always right result #]
...
<form ...>
...
<input type="checkbox" name="text_mobile_alert" [$ if ($details->[0] & 1)
$]checked[$ endif $]> Blah-Blah
...
</form>
-------------------
In the following example executing function get_alerting from module return
array with 1 element and its always what must be. But the problem is that
condition in later code (checkbox only) don't work correct. In the example
above the result is always not checked input box when $fdat{op} is set to
"tele2" and always in correct state if not. In both cases the value of
$details->[0] is correct. Any ideas?
--
Dimitar Peikov