Project

General

Profile

Actions

Evolution #1513

closed

prevent storing actor as empty value - now possible

Added by Simon about 1 year ago. Updated about 1 year ago.

Status:
Fermé
Priority:
Normal
Assignee:
Category:
general
Target version:
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 #1

Updated by Simon about 1 year ago

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 !!!!!!!!!!!!
    }
}

Actions #2

Updated by Simon about 1 year ago

  • Status changed from Nouveau to Fermé
  • % Done changed from 0 to 100

Applied in changeset linea21|r4265.

Actions

Also available in: Atom PDF