Commit c7e8b44a207beed7e14f9963a388b8481a10d9d5
Committed by
Rafael Santos
1 parent
04c6b528
Exists in
master
Issue: 10 - Nao obrigar o cadastro de ISBN no modulo biblioteca
Showing
3 changed files
with
5 additions
and
3 deletions
Show diff stats
ieducar/intranet/educar_acervo_cad.php
@@ -395,7 +395,7 @@ class indice extends clsCadastro | @@ -395,7 +395,7 @@ class indice extends clsCadastro | ||
395 | $this->campoNumero( "num_edicao", "Número Edicão", $this->num_edicao, 20, 255, true ); | 395 | $this->campoNumero( "num_edicao", "Número Edicão", $this->num_edicao, 20, 255, true ); |
396 | $this->campoNumero( "ano", "Ano", $this->ano, 5, 4, true ); | 396 | $this->campoNumero( "ano", "Ano", $this->ano, 5, 4, true ); |
397 | $this->campoNumero( "num_paginas", "Número Páginas", $this->num_paginas, 5, 255, true ); | 397 | $this->campoNumero( "num_paginas", "Número Páginas", $this->num_paginas, 5, 255, true ); |
398 | - $this->campoNumero( "isbn", "ISBN", $this->isbn, 20, 13, true ); | 398 | + $this->campoNumero( "isbn", "ISBN", $this->isbn, 20, 13, false ); |
399 | } | 399 | } |
400 | 400 | ||
401 | function Novo() | 401 | function Novo() |
ieducar/intranet/include/clsBase.inc.php
@@ -29,7 +29,8 @@ | @@ -29,7 +29,8 @@ | ||
29 | */ | 29 | */ |
30 | 30 | ||
31 | // Inclui arquivo de bootstrapping | 31 | // Inclui arquivo de bootstrapping |
32 | -require_once '/home/rafael/ieducar/ieducar/includes/bootstrap.php'; | 32 | +//require_once '/home/rafael/ieducar/ieducar/includes/bootstrap.php'; |
33 | +require_once '../includes/bootstrap.php'; | ||
33 | 34 | ||
34 | // redireciona requisições, caso configurado | 35 | // redireciona requisições, caso configurado |
35 | if ($GLOBALS['coreExt']['Config']->app->routes && | 36 | if ($GLOBALS['coreExt']['Config']->app->routes && |
ieducar/tests/unit/App/Model/IedFinderTest.php
@@ -207,10 +207,11 @@ class App_Model_IedFinderTest extends UnitBaseTest | @@ -207,10 +207,11 @@ class App_Model_IedFinderTest extends UnitBaseTest | ||
207 | ); | 207 | ); |
208 | 208 | ||
209 | $mock = $this->getCleanMock('clsPmieducarSerie'); | 209 | $mock = $this->getCleanMock('clsPmieducarSerie'); |
210 | + | ||
210 | $mock->expects($this->exactly(2)) | 211 | $mock->expects($this->exactly(2)) |
211 | ->method('lista') | 212 | ->method('lista') |
212 | ->will($this->onConsecutiveCalls($returnValue, array($returnValue[1]))); | 213 | ->will($this->onConsecutiveCalls($returnValue, array($returnValue[1]))); |
213 | - | 214 | + |
214 | // Registra a instância no repositório de classes de CoreExt_Entity | 215 | // Registra a instância no repositório de classes de CoreExt_Entity |
215 | $instance = CoreExt_Entity::addClassToStorage( | 216 | $instance = CoreExt_Entity::addClassToStorage( |
216 | 'clsPmieducarSerie', $mock, NULL, TRUE); | 217 | 'clsPmieducarSerie', $mock, NULL, TRUE); |