Notice: Undefined property: stdClass::$nat in nat_form_alter() (line 181 of /drupal/sites/all/modules/contrib/nat/nat.module).
Warning: Invalid argument supplied for foreach() in nat_form_alter() (line 181 of /drupal/sites/all/modules/contrib/nat/nat.module).
The actual associated term is being created just fine, but I'm not sure why $form['#node']->nat is not set properly on the edit form.
Comments
Comment #1
Zen commentedI'm unable to duplicate this. Please provide more info, ideally with a -dev checkout.
Thanks.
-K
Comment #2
jaypark commentedZen, i had the same issue, didn't note the details at the time, but warning occurred when assigning nat to existing content type and vocabulary. when i created a new vocabulary and content type just for testing, this warning didn't recur.
Comment #3
Zen commentedI have tested this again by associating NAT with an existing node type and vocabulary and then visiting the node creation form. I did not encounter a notice.
-K
Comment #4
jaypark commentedyeah... after updating to March 4 dev version, this notice and warning disappeared (note that my comment was made at ~9PM EST on the 3rd). i'm not going to git reset just to revisit this issue if it was resolved with corrected code.
there is no variable $nat anywhere within the form alter hook with the last dev update.
Comment #5
kristen polIt appears to be working for a couple users. Reopen this if it is still an issue (using *dev* version).