Project:Vocabulary Permissions
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

After installing the module, I found that permissions were not being saved. I tracked it down to a minor issue in the form api implementation. Previously the code was using $form['#submit'] to define the submit handler for this module, but the '#submit' key is an attribute of the submit form type to indicate whether a button submits the form, according to the api. So I've created a simple patch here that applies the submit handler via hook_taxonomy().

AttachmentSize
vocabperms.module.patch989 bytes

Comments

#1

Status:needs review» closed (fixed)

That works, too. But according to the API:

Values: TRUE or FALSE. For form, an array in the form array('submit_function_1' => array('arg1a', 'arg1b',..), 'submit_function_2' => array('arg2a', 'arg2b'..)).

That's how the code implements. I don't know why it didn't work for you.

Close the issue because it is too old. Feel free to re-open it if having problem.

nobody click here