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

Debugging from set_callback_options() with incorrect params

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6
    • 2.6
    • Portfolio
    • None
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • MDL-42511-master
    • Hide

      I haven't found an easy way to test this without hacking around

      1. Enable portfolios and some portfolios plugins
      2. Edit the file mod/forum/lib.php:3426 (function forum_print_post) and change the 3rd argument of $button->set_callback_options to:

        'mod/forum/locallib.php'
        So it should look like this:
        $button->set_callback_options('forum_portfolio_caller', array('postid' => $post->id), 'mod/forum/locallib.php');
        

      3. Post to a forum
      4. View the discussion including your post
      5. Export that one post to a portfolio
      6. Make sure you don't see any warning about a deprecated function

      Note: There is still the debugging 'The third parameter sent to the function set_callback_options should be the component name, not a file path, please update this.'

      Show
      I haven't found an easy way to test this without hacking around Enable portfolios and some portfolios plugins Edit the file mod/forum/lib.php:3426 (function forum_print_post) and change the 3rd argument of $button->set_callback_options to: 'mod/forum/locallib.php' So it should look like this: $button->set_callback_options('forum_portfolio_caller', array('postid' => $post->id), 'mod/forum/locallib.php'); Post to a forum View the discussion including your post Export that one post to a portfolio Make sure you don't see any warning about a deprecated function Note: There is still the debugging 'The third parameter sent to the function set_callback_options should be the component name, not a file path, please update this.'

          fred Frédéric Massart
          dmonllao David Monllaó
          Petr Skoda Petr Skoda
          Dan Poltawski Dan Poltawski
          Ankit Agarwal Ankit Agarwal
          Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

            Created:
            Updated:
            Resolved:

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