[Mahara-contributors] [Bug 1396761] Re: allow for reordering of files in image gallery block

2017-03-19 Thread Kristina Hoeppner
** Changed in: mahara
Milestone: 17.04.0 => None

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1396761

Title:
  allow for reordering of files in image gallery block

Status in Mahara:
  Confirmed

Bug description:
  This bug is similar to https://bugs.launchpad.net/mahara/+bug/732462
  and any resorting drag/drop fix there will need to be done for this as
  bug also.

  But there is another complicating factor that makes this bug separate
  and that is:

  When we first add a gallery block to a page and select some images to
  be attached to it the block renders them in the order we selected
  them.

  but when we got to edit the block again to add more items it changes
  the sort order of the originally added items

  This is due to the image gallery using a function to return the
  information for the selected items via:

  'selectlistcallback' => 'artefact_get_records_by_id'

  and that function returns a list of selected items in the order of
  when they were created in the system - eg an array of class objects
  with each class->id being the array key.

  eg:

  array (
  [9] => stdClass Object
  (
  [artefacttype] => image
  [title] => cats.jpg
   ...
  [id] => 9
  )
  [16] => stdClass Object
  (
  [artefacttype] => image
  [title] => ants.jpg
  ... 
  [id] => 16
  )

  
  So we end up with something that is not alphabetical - nor the order we 
selected them to be attached to the block

  What would be needed is to take the $values (which is in the order of
  attaching to block) and impose that sort order on the $selected array
  so that when we edit the block again it doesn't loose our initial
  selection order.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1396761/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1396761] Re: allow for reordering of files in image gallery block

2016-10-20 Thread Robert Lyon
** Changed in: mahara
Milestone: 16.10.1 => 17.04.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1396761

Title:
  allow for reordering of files in image gallery block

Status in Mahara:
  Confirmed

Bug description:
  This bug is similar to https://bugs.launchpad.net/mahara/+bug/732462
  and any resorting drag/drop fix there will need to be done for this as
  bug also.

  But there is another complicating factor that makes this bug separate
  and that is:

  When we first add a gallery block to a page and select some images to
  be attached to it the block renders them in the order we selected
  them.

  but when we got to edit the block again to add more items it changes
  the sort order of the originally added items

  This is due to the image gallery using a function to return the
  information for the selected items via:

  'selectlistcallback' => 'artefact_get_records_by_id'

  and that function returns a list of selected items in the order of
  when they were created in the system - eg an array of class objects
  with each class->id being the array key.

  eg:

  array (
  [9] => stdClass Object
  (
  [artefacttype] => image
  [title] => cats.jpg
   ...
  [id] => 9
  )
  [16] => stdClass Object
  (
  [artefacttype] => image
  [title] => ants.jpg
  ... 
  [id] => 16
  )

  
  So we end up with something that is not alphabetical - nor the order we 
selected them to be attached to the block

  What would be needed is to take the $values (which is in the order of
  attaching to block) and impose that sort order on the $selected array
  so that when we edit the block again it doesn't loose our initial
  selection order.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1396761/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1396761] Re: allow for reordering of files in image gallery block

2016-10-20 Thread Robert Lyon
** Changed in: mahara
Milestone: 16.10.0 => 16.10.1

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1396761

Title:
  allow for reordering of files in image gallery block

Status in Mahara:
  Confirmed

Bug description:
  This bug is similar to https://bugs.launchpad.net/mahara/+bug/732462
  and any resorting drag/drop fix there will need to be done for this as
  bug also.

  But there is another complicating factor that makes this bug separate
  and that is:

  When we first add a gallery block to a page and select some images to
  be attached to it the block renders them in the order we selected
  them.

  but when we got to edit the block again to add more items it changes
  the sort order of the originally added items

  This is due to the image gallery using a function to return the
  information for the selected items via:

  'selectlistcallback' => 'artefact_get_records_by_id'

  and that function returns a list of selected items in the order of
  when they were created in the system - eg an array of class objects
  with each class->id being the array key.

  eg:

  array (
  [9] => stdClass Object
  (
  [artefacttype] => image
  [title] => cats.jpg
   ...
  [id] => 9
  )
  [16] => stdClass Object
  (
  [artefacttype] => image
  [title] => ants.jpg
  ... 
  [id] => 16
  )

  
  So we end up with something that is not alphabetical - nor the order we 
selected them to be attached to the block

  What would be needed is to take the $values (which is in the order of
  attaching to block) and impose that sort order on the $selected array
  so that when we edit the block again it doesn't loose our initial
  selection order.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1396761/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1396761] Re: allow for reordering of files in image gallery block

2016-04-27 Thread Aaron Wells
** Changed in: mahara
Milestone: 16.04.0 => 16.10.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1396761

Title:
  allow for reordering of files in image gallery block

Status in Mahara:
  Confirmed

Bug description:
  This bug is similar to https://bugs.launchpad.net/mahara/+bug/732462
  and any resorting drag/drop fix there will need to be done for this as
  bug also.

  But there is another complicating factor that makes this bug separate
  and that is:

  When we first add a gallery block to a page and select some images to
  be attached to it the block renders them in the order we selected
  them.

  but when we got to edit the block again to add more items it changes
  the sort order of the originally added items

  This is due to the image gallery using a function to return the
  information for the selected items via:

  'selectlistcallback' => 'artefact_get_records_by_id'

  and that function returns a list of selected items in the order of
  when they were created in the system - eg an array of class objects
  with each class->id being the array key.

  eg:

  array (
  [9] => stdClass Object
  (
  [artefacttype] => image
  [title] => cats.jpg
   ...
  [id] => 9
  )
  [16] => stdClass Object
  (
  [artefacttype] => image
  [title] => ants.jpg
  ... 
  [id] => 16
  )

  
  So we end up with something that is not alphabetical - nor the order we 
selected them to be attached to the block

  What would be needed is to take the $values (which is in the order of
  attaching to block) and impose that sort order on the $selected array
  so that when we edit the block again it doesn't loose our initial
  selection order.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1396761/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1396761] Re: allow for reordering of files in image gallery block

2015-09-29 Thread Aaron Wells
** Changed in: mahara
Milestone: 15.10.0 => 16.04.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1396761

Title:
  allow for reordering of files in image gallery block

Status in Mahara:
  Confirmed

Bug description:
  This bug is similar to https://bugs.launchpad.net/mahara/+bug/732462
  and any resorting drag/drop fix there will need to be done for this as
  bug also.

  But there is another complicating factor that makes this bug separate
  and that is:

  When we first add a gallery block to a page and select some images to
  be attached to it the block renders them in the order we selected
  them.

  but when we got to edit the block again to add more items it changes
  the sort order of the originally added items

  This is due to the image gallery using a function to return the
  information for the selected items via:

  'selectlistcallback' => 'artefact_get_records_by_id'

  and that function returns a list of selected items in the order of
  when they were created in the system - eg an array of class objects
  with each class->id being the array key.

  eg:

  array (
  [9] => stdClass Object
  (
  [artefacttype] => image
  [title] => cats.jpg
   ...
  [id] => 9
  )
  [16] => stdClass Object
  (
  [artefacttype] => image
  [title] => ants.jpg
  ... 
  [id] => 16
  )

  
  So we end up with something that is not alphabetical - nor the order we 
selected them to be attached to the block

  What would be needed is to take the $values (which is in the order of
  attaching to block) and impose that sort order on the $selected array
  so that when we edit the block again it doesn't loose our initial
  selection order.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1396761/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1396761] Re: allow for reordering of files in image gallery block

2015-04-20 Thread Aaron Wells
** Changed in: mahara
Milestone: 15.04.1 = 15.10.0

** Changed in: mahara
   Importance: Medium = Wishlist

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1396761

Title:
  allow for reordering of files in image gallery block

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  This bug is similar to https://bugs.launchpad.net/mahara/+bug/732462
  and any resorting drag/drop fix there will need to be done for this as
  bug also.

  But there is another complicating factor that makes this bug separate
  and that is:

  When we first add a gallery block to a page and select some images to
  be attached to it the block renders them in the order we selected
  them.

  but when we got to edit the block again to add more items it changes
  the sort order of the originally added items

  This is due to the image gallery using a function to return the
  information for the selected items via:

  'selectlistcallback' = 'artefact_get_records_by_id'

  and that function returns a list of selected items in the order of
  when they were created in the system - eg an array of class objects
  with each class-id being the array key.

  eg:

  array (
  [9] = stdClass Object
  (
  [artefacttype] = image
  [title] = cats.jpg
   ...
  [id] = 9
  )
  [16] = stdClass Object
  (
  [artefacttype] = image
  [title] = ants.jpg
  ... 
  [id] = 16
  )

  
  So we end up with something that is not alphabetical - nor the order we 
selected them to be attached to the block

  What would be needed is to take the $values (which is in the order of
  attaching to block) and impose that sort order on the $selected array
  so that when we edit the block again it doesn't loose our initial
  selection order.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1396761/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1396761] Re: allow for reordering of files in image gallery block

2015-04-16 Thread Robert Lyon
** Changed in: mahara
Milestone: 15.04.0 = 15.04.1

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1396761

Title:
  allow for reordering of files in image gallery block

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  This bug is similar to https://bugs.launchpad.net/mahara/+bug/732462
  and any resorting drag/drop fix there will need to be done for this as
  bug also.

  But there is another complicating factor that makes this bug separate
  and that is:

  When we first add a gallery block to a page and select some images to
  be attached to it the block renders them in the order we selected
  them.

  but when we got to edit the block again to add more items it changes
  the sort order of the originally added items

  This is due to the image gallery using a function to return the
  information for the selected items via:

  'selectlistcallback' = 'artefact_get_records_by_id'

  and that function returns a list of selected items in the order of
  when they were created in the system - eg an array of class objects
  with each class-id being the array key.

  eg:

  array (
  [9] = stdClass Object
  (
  [artefacttype] = image
  [title] = cats.jpg
   ...
  [id] = 9
  )
  [16] = stdClass Object
  (
  [artefacttype] = image
  [title] = ants.jpg
  ... 
  [id] = 16
  )

  
  So we end up with something that is not alphabetical - nor the order we 
selected them to be attached to the block

  What would be needed is to take the $values (which is in the order of
  attaching to block) and impose that sort order on the $selected array
  so that when we edit the block again it doesn't loose our initial
  selection order.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1396761/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1396761] Re: allow for reordering of files in image gallery block

2014-11-27 Thread aceMa
When rendering an image gallery the script starts with a list of image-
ids that fall from the DB and represents the gallery. Of course any
information that could indicate the order of the images has to be added
to the relation of gallery and image. So it is possible that the
starting-point is the table that holds this relation.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1396761

Title:
  allow for reordering of files in image gallery block

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  This bug is similar to https://bugs.launchpad.net/mahara/+bug/732462
  and any resorting drag/drop fix there will need to be done for this as
  bug also.

  But there is another complicating factor that makes this bug separate
  and that is:

  When we first add a gallery block to a page and select some images to
  be attached to it the block renders them in the order we selected
  them.

  but when we got to edit the block again to add more items it changes
  the sort order of the originally added items

  This is due to the image gallery using a function to return the
  information for the selected items via:

  'selectlistcallback' = 'artefact_get_records_by_id'

  and that function returns a list of selected items in the order of
  when they were created in the system - eg an array of class objects
  with each class-id being the array key.

  eg:

  array (
  [9] = stdClass Object
  (
  [artefacttype] = image
  [title] = cats.jpg
   ...
  [id] = 9
  )
  [16] = stdClass Object
  (
  [artefacttype] = image
  [title] = ants.jpg
  ... 
  [id] = 16
  )

  
  So we end up with something that is not alphabetical - nor the order we 
selected them to be attached to the block

  What would be needed is to take the $values (which is in the order of
  attaching to block) and impose that sort order on the $selected array
  so that when we edit the block again it doesn't loose our initial
  selection order.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1396761/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp