I submitted a new issue, attached a patch, and put it into needs review state. The status of the patch goes to ignored until I post a followup comment. Only after the followup comment does it queue for testing. Is this intended behavior? webchick thought it was weird.

Screenshot is of http://d6.drupal.org/node/367046
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | 519562-project-issue-workaround.patch | 1.54 KB | boombatower |
| #4 | 519562-update-project-issue.patch | 3.69 KB | boombatower |
| ignored_patch_state.png | 64.57 KB | deekayen |
Comments
Comment #1
boombatower commentedNot intended.
Comment #2
boombatower commentedInvestigating locally.
Comment #3
boombatower commentedLooks like underlying project_issue code changed. Arg.
Comment #4
boombatower commentedSeems to be the fix.
Project issue removed the:
prefix from all their node fields.
Comment #5
boombatower commentedCommitted.
Will try and get it deployed.
Comment #6
boombatower commentedGood only project_issue is now nice and inconsistent...seems during node creation it has not prefix, but later it does....
Comment #7
boombatower commentedReverted.
Comment #8
boombatower commentedThis is is blocking ATS 2.x, and if deployed I am going to guess it will break PIFT 1.x.
Comment #9
dwwCore is the root of the inconsistency here. Sometimes a $node is a node, other times, it's an array of form values. It's a huge pain in the ass. My efforts to get core to handle this correctly were thwarted and I gave up. So, project_issue is doing the best it can. You just have to suck it up and be inconsistent like core does.
Comment #10
boombatower commentedJust to clarify this is not an issue with array vs node. This is an issue with the placement of the project_issue variables...which up until a month or so ago was consistent.
PIFT 1.x is running on d.o and uses the format...PIFT 2.x runs on d6.d.o and uses the same format...PIFT 2.x stopped working on d6.d.o..due to an update of project_issue that I can confirm locally.
As such it would seem that it is an issue with project_issue. I understand the annoyances with the node vs array as I have run into that as well, but this obviously used to work.
I don't care which way it ends up I just think it should be consistent.
Before node is saved...all the project issue properties are on the root of the node.
After saving they are prefixed as they used to be always.
I would like to leave this as critical since it will break d.o if deployed and is blocking 2.x since we can't test it on d6.d.o.
Please confirm...and possibly move to project_issue. Having to check array vs node and prefix vs no-prefix is simply nuts.
Comment #11
dwwFeel free to debug. If you find something inconsistent in project_issue, feel free to move back with a patch. I'm way too deep in other things now to work on this. Sorry.
Comment #12
boombatower commentedThe form is designed differently then the hook_load() data structure.
Where as the form uses:
Thus during the creation phase the form makes a flat array since '#tree' => TRUE is not used. It would seem the solution would be to use #tree and make hook_load() follow the format of the form, as every module should.
Comment #13
dwwNo. We want hook_load() to load everything in
$node->project_issue[*]. The form needs to do different things based on the UI (fieldsets, etc). It's silly to encode the data in the $node based on one particular UI. See #98278: project* namespace bugs in $node. Going to call this 'by design'. You can work-around this.Comment #14
boombatower commentedConsidering how much you (and lots of others) dislike core's inconsistency I am not sure why you would be ok with this, but whatever. Makes building on top of project_issue more fun then working with the node API to begin with.
Comment #15
boombatower commentedUgh.
Comment #16
boombatower commentedComment #17
boombatower commentedComment #18
boombatower commentedI still don't agree with this, but that's life. Inconsistent data structures are one of the biggest annoyances in existence. I run into them with cck, core, etc. When you do it sucks...just as you are annoyed. The way the node API and form API works is set in stone for 6.x. The module should work with those APIs and use tree so that the data structure is consistent.
If you think it should work a different way then change in core (I understand that can be a pain in the...), but don't fight it by implementing in a different manor. Having two separates arrays seems to make sense for the same reason they are display separately. They represent two different sets of information.
Comment #19
boombatower commentedCommitted.
Comment #20
boombatower commentedConfirmed: http://d6.drupal.org/node/367058.