Menu

#444 (ok 3.1.3) relation display

closed-accepted
Interface (183)
1
2009-02-28
2009-01-26
Virsacer
No

Wrong vars beeing used, I think

Discussion

  • Virsacer

    Virsacer - 2009-01-26
     
  • Marc Delisle

    Marc Delisle - 2009-01-27
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2009-01-27

    For your first fix, in fact we need to check both $GLOBALS['cfgRelation']['relwork'] and $GLOBALS['cfgRelation']['displaywork'].

    For your second fix, you're right: using isset() to test if something is true is not a good idea.

    Merged with small modifications, thanks.

     
  • Marc Delisle

    Marc Delisle - 2009-01-27
    • summary: relation display --> (ok 3.1.3) relation display
    • priority: 5 --> 1
    • status: open --> open-accepted
     
  • Virsacer

    Virsacer - 2009-01-27

    I think you are wrong about the second one:

    We want to check if the user set a table for relation views.

    What you mean is in the next line.

    Compare a few lines below: designer_coords and designerwork

    BTW: the first check ($GLOBALS['cfg']['Server']['pmadb']) should also be isset()

     
  • Virsacer

    Virsacer - 2009-01-27
    • priority: 1 --> 5
     
  • Virsacer

    Virsacer - 2009-01-27

    It has to be !empty($GLOBALS['cfg']['Server']['pmadb'])

     
  • Marc Delisle

    Marc Delisle - 2009-01-29

    Sorry, I don't understand what you mean. Please attach here a patch2.diff against current trunk, with your suggestions.

     
  • Virsacer

    Virsacer - 2009-01-29

    It has to be a check if the tablename for relation view is set in config

     
  • Marc Delisle

    Marc Delisle - 2009-02-01
    • priority: 5 --> 1
     
  • Virsacer

    Virsacer - 2009-02-09

    I know that this is only a rare used status display but it should still be correct...

     
  • Marc Delisle

    Marc Delisle - 2009-02-09

    As I said:
    Please attach here a patch2.diff
    against current trunk, with your suggestions.

     
  • Virsacer

    Virsacer - 2009-02-10

    I added the patch2.diff over a week ago
    (44 minutes after you asked for it)
    It is still against current trunk.

     
  • Marc Delisle

    Marc Delisle - 2009-02-10

    Sorry I had not noticed.

    However in my tests, patch2.diff changes nothing in PMA's behavior in the case when $cfg['Servers'][$i]['table_info'] is not defined or contains a wrong value.

     
  • Virsacer

    Virsacer - 2009-02-10

    Check what happens when you set "table_info" but not "relation"...

     
  • Marc Delisle

    Marc Delisle - 2009-02-10

    Thanks for the test case. patch2.diff now merged for 3.1.3.

     
  • Marc Delisle

    Marc Delisle - 2009-02-28
    • status: open-accepted --> closed-accepted
     
MongoDB Logo MongoDB