On Apr 27, 10:56 am, Louis Landry <
louis.lan...@joomla.org> wrote:
> I think that probably makes a lot of sense... though it should be $keyName
> :)
>
> - Louis
>
>
>
>
>
> On Mon, Apr 26, 2010 at 10:54 PM, Amedi <
agenme...@gmail.com> wrote:
> > Hi all,
>
> > I've looked around Joomla! 1.6 Framework and have a small question: in
> > modeladmin.php, function save(), line 337:
>
> > $pk = (!empty($data['id'])) ? $data['id'] : (int)$this->getState($this-
> > >getName().'.id');
>
> > As far as I understand, the default name for primary key should be
> > 'id', in case I use other pattern (like car_id), I should have an
> > extra hidden input fields that has name="id" ?
>
> > Is is worth to edit this function to:
>
> > public function save($data, $key_name = 'id')
>
> > Ame
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Joomla! CMS Development" group.
> > To post to this group, send an email to
joomla-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> Joomla! ... because open source matters.