Skip to content

Commit

Permalink
fixing type
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidpeywasti committed Jan 3, 2015
1 parent 6629950 commit ece8a3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
30 changes: 7 additions & 23 deletions dca/tl_catalog_type.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,6 @@
'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleVisibility(this,%s)"',
'button_callback' => array('tl_catalog_type', 'toggleIcon')
),
'stock' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['stock'],
'icon' => 'featured.gif',
'attributes' => 'onclick="Backend.getScrollOffset();return AjaxRequest.toggleStock(this,%s)"',
'button_callback' => array('tl_catalog_type', 'iconStock')
),
'show' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['show'],
Expand All @@ -107,8 +100,8 @@
// Palettes
'palettes' => array
(
'default' => '{title_legend},title,code,date;
{spec_legend},feature,spec;
'default' => '{title_legend},title,model,date;
{spec_legend},spec;
{image_legend},singleSRC;
{description_legend:hide},description;
{publish_legend},published'
Expand Down Expand Up @@ -141,18 +134,18 @@
'exclude' => true,
'search' => true,
'inputType' => 'text',
'eval' => array('maxlength'=>128, 'tl_class'=>'w50'),
'eval' => array('maxlength'=>128),
'sql' => "varchar(255) NOT NULL default ''"
),
'code' => array
'model' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['code'],
'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['model'],
'exclude' => true,
'search' => true,
'sorting' => true,
'inputType' => 'text',
'eval' => array('mandatory'=>true, 'rgxp'=>'alias','unique'=>true,'maxlength'=>10, 'tl_class'=>'w50'),
'sql' => "varchar(10) NOT NULL default ''"
'eval' => array('maxlength'=>128, 'tl_class'=>'w50'),
'sql' => "varchar(128) NOT NULL default ''"
),
'date' => array
(
Expand Down Expand Up @@ -194,15 +187,6 @@
),
'sql' => "blob NULL",
),
'features' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['features'],
'exclude' => true,
'sorting' => true,
'inputType' => 'listWizard',
'eval' => array(),
'sql' => "blob NULL",
),
'singleSRC' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_catalog_type']['singleSRC'],
Expand Down
2 changes: 1 addition & 1 deletion modules/ModuleCatalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ protected function parseType($objProduct)
$arrType[] = array
(
'title' => $objType->title,
'code' => $objType->code,
'model' => $objType->model,
'spec' => $objType->spec,
'description' => $objElement->description,
'image' => $strImage,
Expand Down

0 comments on commit ece8a3a

Please sign in to comment.