Actions
Evolution #1513
closedprevent storing actor as empty value - now possible
Start date:
10/03/2023
Due date:
% Done:
100%
Estimated time:
0.50 h
Resolution:
Description
prevent storing actor as empty value - now possible
Actions
Added by Simon about 1 year ago. Updated about 1 year ago.
100%
Description
prevent storing actor as empty value - now possible
Also in project/_ajax_actor_autocomplete.php
<b>Notice</b>: Undefined variable: str_id in <b>/home/gmjsngf/www/pcaet/project/_ajax_actor_autocomplete.php</b> on line <b>41</b><br />
I guess following test is not working because we have to trim it before ...
foreach ($data as $i => $value)
{
$fullname = '';
if(!empty($value['actor_name'])) {
$fullname = formatText($value['actor_name'], '2HTML');
$str_id = $fullname; // $value['actor_id'];
}
// if a filter is passed
if(isset($value['jpa_type']) && $filter == $value['jpa_type']) $response[] = array($str_id, $fullname, null, $fullname);
else $response[] = array($str_id, $fullname, null, $fullname); // this is line 41 !!!!!!!!!!!!
}
}
Applied in changeset linea21|r4265.