Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

September 21, 2020, 07:43:38 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 190980
  • Total Topics: 20889
  • Online Today: 87
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 0
Guests: 69
Total: 69

Author Topic: Newly created menu items show by default (even when showing status OFF)  (Read 1406 times)

0 Members and 1 Guest are viewing this topic.

Offline @rjen

  • Support Team
  • *
  • Posts: 2464
    • FJR-club Nederland
When you create a new menu item it shows immediately in the menu. Still the menu item is showing as OFF in the menu manager.
Once you manually update the status to on and back to off it behaves.

I see that when creating a new item the setting value5 in tp_variables is set to '-1'
'On' sets it to 0
'Off' sets it to 1

I cannot find where the default is set: but I think the default for a new item should be set to 1  (database default value for the field is -2 btw)
Running TP2.0.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info