|
@@ -921,7 +921,7 @@ SQL_FUN;
|
|
|
if ('1' == V::get('save_offer', '', $_POST)) {
|
|
if ('1' == V::get('save_offer', '', $_POST)) {
|
|
|
$this->saveDefaultOffer($_POST);
|
|
$this->saveDefaultOffer($_POST);
|
|
|
}
|
|
}
|
|
|
- $schema = ProjectKosztorysSchema::getSchema();
|
|
|
|
|
|
|
+ $schema = ProjectKosztorysSchema::getSchema($showErrors = true);
|
|
|
if (empty($schema['config']['type'])) throw new Exception("Schema error - brak zdefiniowanych typów");
|
|
if (empty($schema['config']['type'])) throw new Exception("Schema error - brak zdefiniowanych typów");
|
|
|
$cennik = ProjectKosztorysCennik::getDefaultCennik($idCompany);
|
|
$cennik = ProjectKosztorysCennik::getDefaultCennik($idCompany);
|
|
|
//DBG::_(true, true, "cennik", $cennik, __CLASS__, __FUNCTION__, __LINE__);
|
|
//DBG::_(true, true, "cennik", $cennik, __CLASS__, __FUNCTION__, __LINE__);
|
|
@@ -1102,7 +1102,7 @@ SQL_FUN;
|
|
|
$projCosts = V::get('projCosts', array(), $args);
|
|
$projCosts = V::get('projCosts', array(), $args);
|
|
|
$showPrices = ! V::get('hidePrices', 0, $args);
|
|
$showPrices = ! V::get('hidePrices', 0, $args);
|
|
|
|
|
|
|
|
- $schema = ProjectKosztorysSchema::getSchema();
|
|
|
|
|
|
|
+ $schema = ProjectKosztorysSchema::getSchema($showErrors = true);
|
|
|
$conf = $schema['config'];
|
|
$conf = $schema['config'];
|
|
|
DBG::_('DBG', '>1', "conf", $conf, __CLASS__, __FUNCTION__, __LINE__);
|
|
DBG::_('DBG', '>1', "conf", $conf, __CLASS__, __FUNCTION__, __LINE__);
|
|
|
|
|
|