2

I am new to Drupal.

I have created a rule on specific event, and changing the value of node:field-seat-limit

Event

  • After updating an existing order product

Conditions

  • Content is of type event
  • uc-order-product:node:field-seat-limit (negate)

Action

  • Decrement uc-order-product:node:field-seat-limit by using $value= $value-1;

Result: I am displaying field-seat-limit in a view, where it is showing the decremented count but when I go to the node, it shows the count that I entered first time.

What is causing the node to fail to reflect the updated value?

6
  • Can you please explain in more detail? What is the event, and what value are you changing? How can you tell that it's changing the value of the field, and what should it look like on the node?
    – beth
    Commented Feb 1, 2013 at 19:30
  • Yes, My event is: After updating an existing order product Condition: 1. Content is of type event 2. uc-order-product:node:field-seat-limit (negate) Action: 1. Decrement uc-order-product:node:field-seat-limit by using $value= $value-1; Result: I am displaying field-seat-limit in view, it is showing decremented count but when i am going to node, it is showing count that i entered first time. Thanks For Response IF u want more detail information please tell. Commented Feb 1, 2013 at 21:27
  • That helps a lot. I added it to the question so it will be easier for others to follow your steps.
    – beth
    Commented Feb 1, 2013 at 21:47
  • Looking at this again, I'm also curious which version of Drupal and Ubercart you're using?
    – beth
    Commented Feb 2, 2013 at 0:31
  • Export Rules and show in drupalbin...
    – Nikit
    Commented Feb 2, 2013 at 1:16

1 Answer 1

2

You may have to save the changes after you make them. After your decrement action, add another action to save the entity.

1
  • I am pretty sure that this is indeed the solution ... Commented Sep 30, 2017 at 21:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.