Closed (fixed)
Project:
Taxonomy Access Control
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Feb 2010 at 17:25 UTC
Updated:
16 Aug 2010 at 20:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
xjmOdd, D6 expects a plain object when previous versions and D7 both expect references:
http://api.drupal.org/api/function/hook_form_alter/6
hook_form_FORM_ID_alter()also expects a reference:http://api.drupal.org/api/function/hook_form_FORM_ID_alter/6
We can get around it by using the latter hook instead, which is better practice anyway.
Comment #2
xjmComment #3
xjmPatch attached. Needs testing.
Comment #4
xjmjan.koprowski, can you test whether the patch in #3 resolves the issue for you? I don't actually get the error on my system when I follow your steps above, possibly because I'm using PHP 5.2.
Comment #5
jan.koprowski commentedI'm really sorry for late. I use newest Drupal 6 version and Taxonomy Access Control 1.0 and all works grate! Thanks!
Comment #6
xjmSo merely upgrading to Drupal 6.16 resolved the issue? Or did you apply the patch in #3?
Marking "fixed" for now. If using the patch was what fixed the issue, please change the status to RTBC instead.
Comment #7
jan.koprowski commentedI only Upgrade Drupal and TAC module - I don't apply patch to code. Thanks :)
Comment #9
jan.koprowski commentedI wrote this start working but because people stop reports errors but this wasn't true.
This patch works perfectly and should be added to current TAC release. It solve reported error.
Comment #10
xjm#9: I still don't understand. If the patch in #3 resolves the issue for you, please mark the issue status "Reviewed and Tested by Community" and I will commit it. ("Needs work" means that there is a problem with the patch.) Thanks!
Comment #11
jan.koprowski commentedI'm sorry. I missed this status. My fault. Done.
Comment #12
xjmAttached patch is a reroll against the current dev build.
Comment #13
xjmSetting back to NR until I can test create functionality with the new patch.
Comment #14
xjmHmm, preserve_terms isn't getting called with the patch. Troubleshooting now.
Edit: so it looks like hook_form_FORM_ID_alter() only works for specific node types. I'll just nuke the reference in the hook_form_alter instead.
Comment #15
xjmI think this is the tiniest patch I've ever made. One character!
Comment #16
xjmLatest version works fine.
Comment #17
xjmFix committed to 6.x-1.x-dev:
http://drupal.org/cvs?commit=401462
Comment #18
xjm