Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: Libraries
    • Labels:
    • Testing Instructions:
      Hide

      Test 1:
      grep -Ri PARAM_NUMBER .
      and make sure it's not used in code. Only lib/moodlelib.php should have declaration

      Test 2:
      Review changes and try find any silly mistake.

      Show
      Test 1: grep -Ri PARAM_NUMBER . and make sure it's not used in code. Only lib/moodlelib.php should have declaration Test 2: Review changes and try find any silly mistake.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull Master Branch:
      wip-mdl-32940

      Description

      PARAM_INTEGER was deprecated in 2.0, please replace it with PARAM_NUMBER and remove PARAM_FLOAT declaration.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            skodak Petr Skoda added a comment -

            I think both PARAM_FLOAT and PARAM_NUMBER should be deprecated in favour of something else that deals with floating points and commas properly, but I am afraid this will have to wait till new forms library. There should nob be a need for floating point GET parameters...

            Show
            skodak Petr Skoda added a comment - I think both PARAM_FLOAT and PARAM_NUMBER should be deprecated in favour of something else that deals with floating points and commas properly, but I am afraid this will have to wait till new forms library. There should nob be a need for floating point GET parameters...
            Hide
            rajeshtaneja Rajesh Taneja added a comment -

            Thanks Petr, for now I will just make it consistent in code to use PARAM_FLOAT and leave PARAM_NUMBER declaration. Probably, we can get rid of that with something else later.

            Show
            rajeshtaneja Rajesh Taneja added a comment - Thanks Petr, for now I will just make it consistent in code to use PARAM_FLOAT and leave PARAM_NUMBER declaration. Probably, we can get rid of that with something else later.
            Hide
            rajeshtaneja Rajesh Taneja added a comment -

            PARAM_FLOAT declaration is not removed for 3rd party compatibility.

            Show
            rajeshtaneja Rajesh Taneja added a comment - PARAM_FLOAT declaration is not removed for 3rd party compatibility.
            Hide
            samhemelryk Sam Hemelryk added a comment -

            Changes look good thanks Raj, put this up for integration when you are ready and rebased

            Show
            samhemelryk Sam Hemelryk added a comment - Changes look good thanks Raj, put this up for integration when you are ready and rebased
            Hide
            rajeshtaneja Rajesh Taneja added a comment -

            Thanks Sam and Petr.

            Show
            rajeshtaneja Rajesh Taneja added a comment - Thanks Sam and Petr.
            Hide
            poltawski Dan Poltawski added a comment -

            Delaying till the start of the 2.4 dev cycle. We don't want any more big changes for now.

            Show
            poltawski Dan Poltawski added a comment - Delaying till the start of the 2.4 dev cycle. We don't want any more big changes for now.
            Hide
            rajeshtaneja Rajesh Taneja added a comment -

            Branch re-based,
            Pushing it for integration review.

            Show
            rajeshtaneja Rajesh Taneja added a comment - Branch re-based, Pushing it for integration review.
            Hide
            poltawski Dan Poltawski added a comment -

            The main moodle.git repository has just been updated with latest weekly modifications. You may wish to rebase your PULL branches to simplify history and avoid any possible merge conflicts. This would also make integrator's life easier next week.

            TIA and ciao

            Show
            poltawski Dan Poltawski added a comment - The main moodle.git repository has just been updated with latest weekly modifications. You may wish to rebase your PULL branches to simplify history and avoid any possible merge conflicts. This would also make integrator's life easier next week. TIA and ciao
            Hide
            rajeshtaneja Rajesh Taneja added a comment -

            Brach re-based.

            Show
            rajeshtaneja Rajesh Taneja added a comment - Brach re-based.
            Hide
            poltawski Dan Poltawski added a comment -

            Just adding Tim here because this touches question component mostly.

            Show
            poltawski Dan Poltawski added a comment - Just adding Tim here because this touches question component mostly.
            Hide
            timhunt Tim Hunt added a comment -
            Show
            timhunt Tim Hunt added a comment - https://github.com/rajeshtaneja/moodle/compare/master...wip-mdl-32940#L17R278 is wrong. Should be PARAM_INT. Otherwise fine. By the way, http://tracker.moodle.org/browse/MDL-32940?focusedCommentId=156907&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-156907 is really needed for teachers editing numerical questions, but it is a separate issue.
            Hide
            rajeshtaneja Rajesh Taneja added a comment -

            Thanks for the inputs Tim,

            Replaced FLOAT with INT at https://github.com/rajeshtaneja/moodle/compare/master...wip-mdl-32940#L17R278

            Show
            rajeshtaneja Rajesh Taneja added a comment - Thanks for the inputs Tim, Replaced FLOAT with INT at https://github.com/rajeshtaneja/moodle/compare/master...wip-mdl-32940#L17R278
            Hide
            poltawski Dan Poltawski added a comment -

            Thanks guys, i've integrated this now

            Show
            poltawski Dan Poltawski added a comment - Thanks guys, i've integrated this now
            Hide
            ankit_frenz Ankit Agarwal added a comment -

            Hi Guys,
            Looks good to me.
            Passing!
            Thanks

            Show
            ankit_frenz Ankit Agarwal added a comment - Hi Guys, Looks good to me. Passing! Thanks
            Hide
            nebgor Aparup Banerjee added a comment -

            yay, it works!

            This issue has been put through rigorous processes and finally swam upstream along with some 65 others this week.

            Thank you all for taking the time to get us here.

            cheers!

            Show
            nebgor Aparup Banerjee added a comment - yay, it works! This issue has been put through rigorous processes and finally swam upstream along with some 65 others this week. Thank you all for taking the time to get us here. cheers!

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/12