TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

November 06, 2024, 05:35:19 AM

Login with username, password and session length
Members
  • Total Members: 3,923
  • Latest: Nobohdy
Stats
  • Total Posts: 195,411
  • Total Topics: 21,249
  • Online today: 98
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 31
  • Total: 32
  • IgorS

Newly created menu items show by default (even when showing status OFF)

Started by @rjen, September 07, 2018, 09:47:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

@rjen

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 Latest TP on SMF2.1 at: www.fjr-club.nl