Flag trim using Rules Doesn't Work

hga77 - October 26, 2009 - 18:29
Project:Flag
Version:6.x-2.x-dev
Component:Rules integration
Category:bug report
Priority:normal
Assigned:Amitaibu
Status:closed
Description

This functionality does not work!!! Unless I'm missing something.

I've installed:

- Flag 6.x-2.x-dev (and applied last patch from http://drupal.org/node/596564)
- Rules 6.x-1.1

I have a content type that has a Flag ('Featured' flag). I need to be able to set a limit to the number of flags I can set. I need a maximum of 6 'Featured' items. So i've set the rule (look at the attached image). But this doesnt work.

Something that would have taken me 1 minute to implement is taking me more that 3 hrs and no result...

Please help since I want to use Flag/Rules combo

AttachmentSize
Editing rule When featuring Case Study, limit flags - momentumww uk_1256580975382.png20.5 KB

#1

hga77 - October 26, 2009 - 18:48

Attached is the flags setup page

AttachmentSize
Edit Featured flag - momentumww uk_1256582725462.png 109.31 KB

#2

quicksketch - October 26, 2009 - 21:22
Priority:critical» normal
Status:active» postponed

I don't support the Rules module implementation, this will remain unfixed unless a patch is provided.

#3

hga77 - October 27, 2009 - 00:48

It states on the Flag module page "Full Rules module integration"

I'm trying to use Trim Flag.

#4

quicksketch - October 27, 2009 - 01:13

The Rules integration was written by the community and our previous maintainer mooffie. Unfortunately mooffie is no longer working on Drupal, so there are no maintainers that support the Rules integration directly. It's included in the 1.1 version because community members wrote it. If it's not updated I'll remove it from the 2.x version.

#5

hga77 - October 27, 2009 - 01:22

Ok, thanks for the details.

#6

quicksketch - October 27, 2009 - 01:30

Just a note that Amitaibu regularly contributes to Flag and has been keeping up with all the 2.x changes, I don't think he'll allow the 2.x version to actually loose the Rules integration.

#7

Amitaibu - October 30, 2009 - 13:33

> don't think he'll allow the 2.x version to actually loose the Rules integration.

Indeed :)

I'll have a look at this issue in a couple of days. I know for sure it worked for 6.x-1.0, need to check what has changed.

#8

ajayg - November 2, 2009 - 01:00

Just confirming flag 6.x-1.1 and rules 6.x-1.1 continue to work. so definitely change from 1.0 to 1.1 did NOT cause this.

#9

Amitaibu - November 2, 2009 - 08:18
Component:Flag core» Rules integration
Assigned to:Anonymous» Amitaibu
Status:postponed» needs review

Patch fixes trim (we passed the user ID instead of the user object). Also remove whitespaces.

AttachmentSize
615072-flag-trim-9.patch 2.88 KB

#10

quicksketch - November 3, 2009 - 01:54
Status:needs review» fixed

Thanks, looks good to me. The change from $uid to $account makes sense, considering that we need the full $account anyway to pass into the flag() function. Committed.

#11

hga77 - November 3, 2009 - 18:34

Great thanks guys :)

#12

System Message - November 17, 2009 - 18:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.