Форуми / Cotonti / Bugs / small improvement for page.edit.inc GENOA

using ckeditor plugin ( e.g. )

ez
#1 23.05.2011 18:28

When using ckeditor the add will set the page type to HTML.
But on the edit it goes wrong.... the parsing will get overwritten with blank... IF you leave out the parser fields in the TPL.

There are more ways to fix it, but this fix in page.edit.inc.php on line 203 (near) wont break anything if a couple off admin fields
are left out off the TPL.. (They now get overwritten by blank....)

SO, i think this will improve MVC, because TPL should never influence the outcome..

(Just a pointer.... use it or not...)

 

              // LLS : 2basix : Modification START
                $ssql_admin="";
                if ($rpagetype!="") { $ssql_admin = "page_type = '".sed_sql_prep($rpagetype)."'"; }   

                if ($rpageownerid!="") {
                    $ssql_admin .= ($ssql_admin=="") ? "" : ",";
                    $ssql_admin = "page_ownerid = '$rpageownerid'";
                }   

                if ($rpageownerid!="") {
                    $ssql_admin .= ($ssql_admin=="") ? "" : ",";
                    $ssql_admin .= "page_count = '$rpagecount'";
                }   
                $ssql_admin .= ($ssql_admin=="") ? "" : ",";
                // LLS : 2basix : Modification END

                /* orginal code
                $ssql_admin = "page_type = '".sed_sql_prep($rpagetype)."',
                page_ownerid = '$rpageownerid',
                page_count = '$rpagecount',";
                */

==- I say: Keep it EZ -==