1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Fixes #3426 - Pages : Custom Fields on Create.

This commit is contained in:
Cameron
2018-09-27 14:51:20 -07:00
parent f99e2fbca0
commit 1d6a957793

View File

@@ -1014,6 +1014,9 @@ class page_admin_ui extends e_admin_ui
function beforeCreate($newdata,$olddata)
{
$newdata = e107::getCustomFields()->processDataPost('page_fields',$newdata);
$newdata['menu_name'] = preg_replace('/[^\w-*]/','-',$newdata['menu_name']);
if(empty($newdata['page_sef']))