Skip to content

Commit

Permalink
Fixes e107inc#3426 - Pages : Custom Fields on Create.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Sep 27, 2018
1 parent f99e2fb commit 1d6a957
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e107_admin/cpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,9 @@ function afterCreate($newdata,$olddata, $id)

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']))
Expand Down

0 comments on commit 1d6a957

Please sign in to comment.