mirror of
https://github.com/yweber/lodel2.git
synced 2026-11-04 02:21:33 +01:00
Adding icon argument to EmType::create() method
This commit is contained in:
parent
cd37b0129f
commit
65166a5dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class EmType(EmComponent):
|
|||
# @see EmComponent::__init__()
|
||||
#
|
||||
# @todo check that em_class is an EmClass object (fieldtypes can handle it)
|
||||
def create(c, name, em_class, sortcolumn='rank', **em_component_args):
|
||||
def create(c, name, em_class, sortcolumn='rank', icon=None, **em_component_args):
|
||||
return super(EmType, c).create(name=name, class_id=em_class.uid, sortcolumn=sortcolumn, **em_component_args)
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue