Author Topic: Price Set ordering  (Read 411 times)

Offline dsdart

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.41
  • PHP version: 5.3.1
Price Set ordering
« on: January 18, 2012, 03:10:15 pm »
There is a problem with reordering price sets.  I've seen a couple of old posts on this but I just recreated it in the sandbox.  I added a new price set, Member Class, and added 3 options.  Then I saved it and added another option.  The new option was given an Order of 1 and appeared second in the list.

http://sandbox.drupal6.civicrm.org/civicrm/admin/price/field/option?reset=1&action=update&oid=7&fid=4&sid=2

Hopefully you can fix this soon??  As always, thanks for your hard work.
« Last Edit: January 18, 2012, 07:16:13 pm by dsdart »

Offline dsdart

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.41
  • PHP version: 5.3.1
Re: Price Set ordering
« Reply #1 on: January 18, 2012, 04:16:54 pm »
I see another issue - it looks like the civicrm_price_field_value -> name is getting cut off so I am getting several rows with the same name, even though the label is different in the table. 


Offline dsdart

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.41
  • PHP version: 5.3.1
Re: Price Set ordering
« Reply #2 on: January 18, 2012, 04:30:29 pm »
Playing more with the price set I created in the sandbox.  Sometimes the item gets moved to the correct place, sometimes to the wrong place and sometimes nothing gets moved.  Moving the top one to the bottom or the bottom one to the top works okay.

Recreated this sequence:
Moving the fourth one to the top, then moving the new fourth one to the top will swap the old fourth one and the new fourth one, instead of moving the old one to second, the second to third and the third to fourth.

And this sequence:
Move the bottom one to the top.  Swap first and second ones. Then swap second and third ones.  The one you are moving jumps down to the bottom instead of third.

Hopes this helps track the issue down...

Offline dsdart

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.41
  • PHP version: 5.3.1
Re: Price Set ordering
« Reply #3 on: January 24, 2012, 02:07:13 pm »
Is anybody looking at fixing this in the near future?

Offline Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 12643
  • Karma: 396
    • CiviCRM site
  • CiviCRM version: 4.1
  • CMS version: Drupal 7, Joomla 1.7
  • MySQL version: 5.1.x
  • PHP version: 5.3.x
Re: Price Set ordering
« Reply #4 on: January 24, 2012, 02:20:24 pm »

If you can investigate and provide a patch for the below issue that will help get it fixed in the 4.1 release. Please file an issue in the issue tracker for this issue

Should be a good starting project for someone

lobo
Found this reply helpful? Contribute NOW and help improve CiviCRM with the Make it Happen! initiative.

My current favorite is CiviMobile.

Donate NOW

Offline dsdart

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.41
  • PHP version: 5.3.1
Re: Price Set ordering
« Reply #5 on: January 27, 2012, 11:33:02 am »
Created CRM-9556 and added a patch