Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Steps to reproduce:
1. Visit the 'create issue' form on a project (e.g. http://git7site.devdrupal.org/node/add/project_issue/drupal)
2. Enter garbage text in the 'Project' select box
3. Hit 'tab' to shift focus out of the project box
Result:
Notice: Trying to get property of non-object in project_issue_project_issue_assignees() (line 2194 of /var/www/git-dev.drupal.org/htdocs/sites/all/modules/project_issue/project_issue.module).
Notice: Trying to get property of non-object in project_issue_project_issue_assignees() (line 2194 of /var/www/git-dev.drupal.org/htdocs/sites/all/modules/project_issue/project_issue.module).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 173 of /var/www/git-dev.drupal.org/htdocs/includes/entity.inc).
Notice: Trying to get property of non-object in project_issue_set_breadcrumb() (line 711 of /var/www/git-dev.drupal.org/htdocs/sites/all/modules/project_issue/project_issue.module).
Notice: Trying to get property of non-object in project_project_get_breadcrumb() (line 319 of /var/www/git-dev.drupal.org/htdocs/sites/all/modules/project/project.module).
Notice: Trying to get property of non-object in project_project_get_breadcrumb() (line 320 of /var/www/git-dev.drupal.org/htdocs/sites/all/modules/project/project.module).
Notice: Trying to get property of non-object in project_project_get_breadcrumb() (line 320 of /var/www/git-dev.drupal.org/htdocs/sites/all/modules/project/project.module).
Comments
Comment #1
jthorson CreditAttribution: jthorson commentedFor some reason, I simply can't get a form_error() inside project_issue_field_project_validate() to display and/or prevent the AJAX submission ...
Comment #2
jthorson CreditAttribution: jthorson commentedAlso, after typing inside the 'Project' box and moving out, the AJAX processing tends to hang firefox for 5-8 seconds ... this may need a closer look.
Comment #3
drummComment #4
drummhttp://drupalcode.org/project/project_issue.git/commit/d564e5a fixes most of the notices. #1683964: Entity Reference Error (array_flip, undefined target_id) when using autocomplete and no entites selected is the remaining notice.
I did notice Firefox hanging intermittently. It feels like it is happening after the AJAX callback finishes, when the new form bits get out into the DOM. We may be able to work around this with different JS, or maybe Firefox will clean it up as they improve their JS engine. I don't think it is worth worrying about here.