Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Commit

Permalink
Corrigindo Bug ao Desacoplar Ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefaria committed Feb 15, 2012
1 parent 5f55802 commit eb15c02
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .classpath
Expand Up @@ -4,7 +4,7 @@
<classpathentry kind="src" path="src/test/groovy"/> <classpathentry kind="src" path="src/test/groovy"/>
<classpathentry kind="src" path="src/main/groovy"/> <classpathentry kind="src" path="src/main/groovy"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"> <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes> <attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes> </attributes>
Expand Down
6 changes: 3 additions & 3 deletions .project
Expand Up @@ -21,24 +21,24 @@
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name> <name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name> <name>org.eclipse.m2e.core.maven2Builder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.springframework.ide.eclipse.core.springnature</nature> <nature>org.springframework.ide.eclipse.core.springnature</nature>
<nature>org.eclipse.jdt.groovy.core.groovyNature</nature> <nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures> </natures>
</projectDescription> </projectDescription>
47 changes: 23 additions & 24 deletions pom.xml
Expand Up @@ -11,31 +11,30 @@


<build> <build>
<directory>${directory}</directory> <directory>${directory}</directory>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<encoding>UTF-8</encoding>
<providerSelection>1.7</providerSelection>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.codehaus.gmaven</groupId> <artifactId>maven-compiler-plugin</artifactId>
<artifactId>gmaven-plugin</artifactId> <version>2.3.2</version>
<configuration>
<encoding>utf-8</encoding>
<optimize>true</optimize>
<source>1.6</source>
<target>1.6</target>
<compilerId>groovy-eclipse-compiler</compilerId>
</configuration>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.6.0-01</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>1.7.10-06</version>
</dependency>
</dependencies>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -320,7 +319,7 @@
<version>${spock.version}</version> <version>${spock.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>

<dependency> <dependency>
<groupId>org.hibernate</groupId> <groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId> <artifactId>hibernate-validator</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions src/main/groovy/br/com/bluesoft/pronto/model/Ticket.groovy
Expand Up @@ -302,14 +302,14 @@ class Ticket {
logs.add(log) logs.add(log)
} }


void addLogDeExclusao(final String campo, final String valor) { void addLogDeExclusao(def campo, def valor) {
final TicketLog log = new TicketLog() final TicketLog log = new TicketLog()
log.setTicket(this) log.setTicket(this)
log.setData(new Date()) log.setData(new Date())
log.setUsuario(Seguranca.getUsuario().getUsername()) log.setUsuario(Seguranca.getUsuario().getUsername())
log.setOperacao(TicketLog.EXCLUSAO) log.setOperacao(TicketLog.EXCLUSAO)
log.setCampo(campo) log.setCampo(String.valueOf(campo))
log.setValorAntigo(valor) log.setValorAntigo(String.valueOf(valor))
log.setValorNovo(null) log.setValorNovo(null)
logs.add(log) logs.add(log)
} }
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/commons/menuRapido.jsp
Expand Up @@ -9,7 +9,7 @@


<c:if test="${usuarioLogado.administrador or usuarioLogado.productOwner or usuarioLogado.equipe or usuarioLogado.scrumMaster}"> <c:if test="${usuarioLogado.administrador or usuarioLogado.productOwner or usuarioLogado.equipe or usuarioLogado.scrumMaster}">
<span id="menuRapido" align="right"> <span id="menuRapido" align="right">
<a href="${ticketsEnvolvidosUrl}"><pronto:icons name="minhas_pendencias.png" title="Ver ticket pendêntes em que você está envolvido."/></a> <a href="${ticketsEnvolvidosUrl}"><pronto:icons name="minhas_pendencias.png" title="Ver ticket pendentes em que você está envolvido."/></a>
<a href="${inboxUrl}"><pronto:icons name="inbox.png" title="Ir para Inbox"/></a> <a href="${inboxUrl}"><pronto:icons name="inbox.png" title="Ir para Inbox"/></a>
<a href="${productBacklogUrl}"><pronto:icons name="product_backlog.png" title="Ir para Product Backlog"/></a> <a href="${productBacklogUrl}"><pronto:icons name="product_backlog.png" title="Ir para Product Backlog"/></a>
<a href="${sprintAtualUrl}"><pronto:icons name="sprint_atual.png" title="Ir para Sprint Atual"/></a> <a href="${sprintAtualUrl}"><pronto:icons name="sprint_atual.png" title="Ir para Sprint Atual"/></a>
Expand Down

0 comments on commit eb15c02

Please sign in to comment.