If I create a new ticket or task, the system automatically picks an organization. When I change the organization, I cannot assign to a person without first having to safe the ticket or task.
Only after saving and re-opening, the right person assignment appears.

Comments

juliangb’s picture

Assigned: Unassigned » juliangb

I'm looking into this.

Note to self: In order to change multiple fields on the Ajax callback, we actually have to replace the entire form object.

dbt102’s picture

StatusFileSize
new43.57 KB
new53.78 KB

In trying to recreate this error, I came across some strangeness to report (see Create_ticket-1.png).

To get this I created a new ticket from the PM Dashboard and selected choices as shown which had been created for earlier testing. Initially, the choices available in the "Assigned to" drop-down were only Teams, which I selected and saved. However, the "save" didn't take and kicked me back to the screen shown. Then the drop-down choices change to PM Persons.

When I select a PMPerson and save, the ticket seems to be created OK, however I get this additional message. ( see Create_ticket-2.png).

juliangb’s picture

Status: Active » Needs review
StatusFileSize
new9.56 KB

Here's a patch.

dbt102’s picture

StatusFileSize
new67.3 KB

Patch applied cleanly.

When creating a new ticket, the "Assigned to" drop-down populated with PMPersons which is good.

Then saving worked, however when save completed an undefined property error showed. (see attached)

juliangb’s picture

I've just tried this on the demo site (http://drupal-7.project-management-module.org/pm/tickets/test-ticket-0) and it worked fine without any error messages.

Are there any specific circumstances that you see this error, or all the time?

I'm struggling to reproduce it.

juliangb’s picture

Status: Needs review » Active

Committed that patch. Keeping this issue open to track that warning.

Raphael Dürst’s picture

Status: Active » Needs review
StatusFileSize
new1.67 KB

I see these errors too on my local installation.

This is because the date fields are not working yet.
They are not added to the $node object and the error occurs, because the properties are not existing when trying to get them from the object with $node->dateend;.

I have just commented out all lines with datebegin/dateend.
We better just directly add the new date fields with Field API.

dbt102’s picture

Patch applied cleanly. Could edit Organization, Project, Task, Duration Unit and Price Mode and save without throwing any errors/warnings.

Coder says " Coder found 1 projects, 6 files, 17 normal warnings, 0 warnings were flagged to be ignored"...

Patch looks good to me...

juliangb’s picture

Title: Ticket or task for different organisations assign to not working » Warning on saving ticket
Status: Needs review » Fixed

Committed - thanks!

juliangb’s picture

By the way, for clarity:

This fix will be included in the 7.x-1.x-dev release as of midday today, and in the next point release (currently scheduled for early August).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit cbe2a46 on 7.x-1.x, 7.x-2.x by juliangb:
    Issue #1994568 by juliangb | jandewit6: Fixed Ticket or task for...
  • Commit aa51d98 on 7.x-1.x, 7.x-2.x by juliangb:
    Issue #1994568 by juliangb, Raphael Durst | jandewit6: Fixed Warning on...