Since the catID is not known before the insert, we call update() after
insert() since then the update code knows the ID and build the id-based
path field.

Greetings
R


On Mon, Jan 28, 2013 at 1:19 AM, Drak <notifications@github.com> wrote:

> In src/lib/util/CategoryUtil.php:
>
> >              }
> > -            $cat->insert();
> > -            $cat->update();
> > +//            if (!$cat->validate('admin')) {
>
> What is this for? @rgasch <https://github.com/rgasch>
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zikula/core/pull/687/files#r2787862>.
>
>