Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.10
    • Fix Version/s: 3.0.11-RC1
    • Component/s: ACP
    • Labels:
      None
    • Environment:
      PHP Version 5.2.17, MySql 5.1.60, firefox 12 a2 Aurora

      Description

      first sorry for my bad english and the issue is that; when i tried to add a rank and when i write a negative value for "minimum message number" there is an error. i attached error picture.

      SQL ERROR [ mysqli ]

      Out of range value for column 'rank_min' at row 1 [1264]

      SQL

      INSERT INTO phpbb_ranks (rank_title, rank_special, rank_min, rank_image) VALUES ('asd', 0, -20, 'VistaRanks/g_rank0.gif')

      BACKTRACE

      FILE: [ROOT]/includes/db/mysqli.php
      LINE: 182
      CALL: dbal->sql_error()

      FILE: [ROOT]/includes/acp/acp_ranks.php
      LINE: 90
      CALL: dbal_mysqli->sql_query()

      FILE: [ROOT]/includes/functions_module.php
      LINE: 507
      CALL: acp_ranks->main()

      FILE: [ROOT]/adm/index.php
      LINE: 74
      CALL: p_master->load_active()

        Activity

        Hide
        pikachuturkey pikachuturkey added a comment -

        is not there any warning page like " you cant write negative value to minimum message value"

        Show
        pikachuturkey pikachuturkey added a comment - is not there any warning page like " you cant write negative value to minimum message value"
        Hide
        nickvergessen Joas Schilling added a comment -

        Don't think we need a warning here. Just using the maximum from 0 and entered value now.

        Show
        nickvergessen Joas Schilling added a comment - Don't think we need a warning here. Just using the maximum from 0 and entered value now.
        Hide
        bantu Andreas Fischer added a comment -

        I'd prefer a proper error message. Not sure whether that can be added easily into develop-olympus.

        Show
        bantu Andreas Fischer added a comment - I'd prefer a proper error message. Not sure whether that can be added easily into develop-olympus.
        Hide
        nickvergessen Joas Schilling added a comment -

        Of course this is possible. I just wonder why we should do that. You dont accidently add a negative post value, do you?

        Show
        nickvergessen Joas Schilling added a comment - Of course this is possible. I just wonder why we should do that. You dont accidently add a negative post value, do you?

          People

          • Assignee:
            nickvergessen Joas Schilling
            Reporter:
            pikachuturkey pikachuturkey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development