Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29319

Duplicating activity, throws uasort (textlib) warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 2.2
    • Libraries
    • MOODLE_22_STABLE

      When testing the modifications developed for MDL-28488, using the "x2" (duplicate activity) feature seems to work ok but it shows the following warning:

      Warning: uasort() [function.uasort]: Array was modified by the user comparison function in /lib/textlib.class.php on line 691
      Call Stack
      #	Time	Memory	Function	Location
      1	0.0001	639248	{main}( )	../modduplicate.php:0
      2	1.6617	12957176	restore_controller->execute_plan( )	../modduplicate.php:90
      3	1.6619	12957176	restore_plan->execute( )	../restore_controller.class.php:302
      4	1.6622	12957176	base_plan->execute( )	../restore_plan.class.php:157
      5	1.6624	12972656	base_task->execute( )	../base_plan.class.php:148
      6	1.6790	13060864	restore_execution_step->execute( )	../base_task.class.php:153
      7	1.6790	13060864	restore_create_included_users->define_execution( )	../restore_execution_step.class.php:34
      8	1.6791	13060864	restore_dbops::create_included_users( )	../restore_stepslib.php:691
      9	1.6792	13062592	get_list_of_themes( )	../restore_dbops.class.php:738
      10	1.6989	14762160	collatorlib::asort_objects_by_method( )	../moodlelib.php:6763
      11	1.6990	14763040	uasort ( )	../textlib.class.php:691

      Haven't investigated it but seems to be happening in the new stuff from textlib related to collations.

      Ciao

            Unassigned Unassigned
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.