![]() ![]() This works great in other actions with other content so it probably has something to do with this being users but I can't figure out what. 1 Ive created some rules to send notifications when changes some fields and it works as I expected when the user click on Save button. 'Unknown column base.owner' implies update.php wasnt run. If your Rules codebase doesnt contain update 7211, then you dont need the owner column. Older databases will have the owner column added by update 7211 when update.php is run. When a bug report is set to closed, you can no longer add or remove a flag (via trapping and undoing the flag operation. Situation: I have a node type 'Bug report' with a flag (module) 'confirm' and a cck field 'Status' which can be 'Open' or 'Closed'. Cant seem to be able to add a condition or an action that i have created to a rule, same case applies if i first create the rule then use the UI on the rule page to add a condition or action, the window to add or create rule pops but once done setting up the action or condition can seem to be able to add it to the rule. Here is a straight bug report on the issue I ended up hitting. ![]() That's where something goes wrong and I end up with this error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /Users/lennertslabbinck/Sites/Frontview/web/core/lib/Drupal/Core/Cache/DatabaseBackend.php on line 167 I really dont understand what problem this is trying to correct or why this is still a problem. The last issue related to this was a mess of different theories and situations. This all works fine until it hits the $user->save() part. $user->field_signature->format = "full_html" $last_name = $user->get("field_last_name")->value What Ive ended up doing is creating two 'dummy' date fields for DAY BEFORE and DAY AFTER, and Im trying to hook into the form, grabbing the event date, using some PHP like strtotime() to add/subtract a day, and make these the values that would go into the database. When I assign the role 'Merchant' to a user, I want him to receive a confirmation email. ![]() This is the action, all it does is save a new value to the signature field (textfield, full_html). node:fieldeventdate-datetime -1 day as the scheduled time. I installed the Rules module on my sites, but it has been in alpha for several years. It seems that its impossible to update fields (from fieldsAPI) for fieldable entites with entitysave. The rule get's triggered whenever an account is updated and performs a simple custom action. Im gonna call this a support request, because I think I must be missing something. (requires a full node load and save operation for each node!).I'm using the Rules module to update my user email signatures. 3 and 4 would need a seperate section where we can change the save setting to be either 'per row', 'per view/page', 'both'. This one may be easy to do - just allow each field to have a parameter - 'auto save this field'. On the project node I have those exact same fields. None of the rows should auto-save, and there should be a save button for the entire view/current page. Each team member has on its node a location, ie, United Kingdom, United States, Australia. ![]() For example, I have a project node with team members referencing the project. The action needs an array, you entered an object. My question is about: 'adding field data to referenced node without replacing existing data'. This means you have entered a value of the wrong data type. Sadly, there's no very simple way to do this (besides VBO/rules), but here's the code I use in update functions in my custom module install files when I need to prepopulate field values for a certain node type after adding a new field (in this case, 'page' nodes): fetchAllAssoc('nid') ĭb_insert('field_data_field_page_new_field')ĭb_insert('field_revision_field_page_new_field')Īnother manual method mentioned in this answer uses EntityFieldQuery and loads/saves each node. Argument 1 passed to DrupalrulesPluginRulesActionSystemSendEmail::doExecute() must be of the type array, object given. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |