#2267409: Cleanup makefile field on node/add/platform made changes to the makefile field in the platform form entry. These were incomplete. The insert and update were not changed to match the field changes.

patch will be attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joestewart’s picture

Status: Active » Needs review
FileSize
1.08 KB

updated _insert and _update to match the form changes.

joestewart’s picture

Title: makefile field entires not saved » makefile field entries not saved
joestewart’s picture

Status: Needs review » Needs work

After the verify is completed, the entry for the makefile gets deleted. looking now.

joestewart’s picture

Status: Needs work » Needs review
FileSize
1.36 KB

revised patch. Line 476 is ugly but the makefile entry didn't survive the verify after saving otherwise.

joestewart’s picture

Status: Needs review » Needs work

oh, man. ignore #4. forgot I had commented out the node_save in hosting_platform_post_hosting_verify_task http://cgit.drupalcode.org/hosting/tree/platform/hosting_platform.drush....

Maybe someone else can fix. moving on for now.

joestewart’s picture

Status: Needs work » Needs review
helmo’s picture

Found it ... sort of.

When the form API tries to store the platform node the value is in $node->frommakefile['makefile'].
But when you do a node_load, as provision does, you get $node-makefile ... The third hunk in this new path 'fixes' this.
However fixing #2347375: META: Convert pseudo fields to real fields. would also force us to do this properly.

helmo’s picture

The patch in #7had the wrong contents ... Here's the real patch.

  • helmo committed a050e3e on 7.x-3.x
    Issue #2360995 by joestewart, helmo: Fixed makefile field entries not...
helmo’s picture

Status: Needs review » Fixed

merged

Status: Fixed » Closed (fixed)

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

Pol’s picture

Adding new related issue. Patch will follow.