Commit graph

1234 commits

Author SHA1 Message Date
Daniel Díaz Sañudo
7bbab06a41 i18n: Update Catalan translation
FEA: ItEr77S03Community
2012-12-13 18:04:56 +01:00
Jeroen Baten
4de9c9b0d6 i18n: Update Dutch translation
FEA: ItEr77S03Community
2012-12-13 18:02:12 +01:00
Manuel Rego Casasnovas
0898db0b18 i18n: Update Spanish and Galician translations
FEA: ItEr77S03Community
2012-12-13 18:00:59 +01:00
Manuel Rego Casasnovas
09d9cf2952 Set version for JavaScript modules in lang-addon.xml files
The modules names are obtained from the *.wpd files.

The version value should be updated every time we release a new LibrePlan
version.

FEA: ItEr77S04BugFixing
2012-12-12 11:42:19 +01:00
Manuel Rego Casasnovas
2b1ed0a998 Bug #1592: Fix problem not showing the tab if it is already being shown
FEA: ItEr77S04BugFixing
2012-12-11 20:05:09 +01:00
Óscar González Fernández
787916b50d Bug #1592: Save Order before showing it
Otherwise the MutableTreeModel associated is initialized with a Order
that is not saved yet. When it's used, e.g., when adding a
subtask, it fails.

The MutableTreeModel#nodesByDomainObject map wouldn't find the node
associated to the Order, because the hashCode is different. At first
the Order is a new object so it returns a different hashCode, once
saved another. With these changes, when initializing the
MutableTreeModel it has already been saved.
2012-12-11 20:04:33 +01:00
Óscar González Fernández
c8129cd292 Bug #1590: Avoid repeated calls to goToOrdersList
A mechanism for ignoring in a scope the calls to createBindings has
been added. When accessing from the entry point the page is been
created and the AnnotatedDataBinder created automatically will track
the created tab. So in these cases we must ignore createBindings
calls.
2012-12-11 16:33:33 +01:00
Óscar González Fernández
f06a44d6e9 Avoid some redundant loads of bindings in the same request
Sometimes reloadBindings is called several times in the same request.
Now only the first call would force the reload and the others would be
ignored.

For example, when switching to Projects List reloadBindings is called
after the tab being created and another time when calling
org.libreplan.web.orders.OrderCRUDController.goToList(). Now the
second call is ignored.
2012-12-11 16:33:33 +01:00
Manuel Rego Casasnovas
2b4be85656 Revert "Bug #1590: Fix problem calling several times the same method in OrderModel"
This reverts commit 7ca0d43883.
2012-12-11 16:33:33 +01:00
Manuel Rego Casasnovas
bf8b2fbe94 Revert "Bug #1592: Fix problem not showing the tab if it is already being shown"
This reverts commit 8c6fb028e6.

It causes a NPE when adding tasks to a project just after create a project.
2012-12-11 15:59:45 +01:00
Manuel Rego Casasnovas
2ff100d3ad Bug #1593: Fix issue translating the options while rendering
FEA: ItEr77S04BugFixing
2012-12-10 13:30:33 +01:00
Manuel Rego Casasnovas
8c6fb028e6 Bug #1592: Fix problem not showing the tab if it is already being shown
FEA: ItEr77S04BugFixing
2012-12-07 18:15:26 +01:00
Manuel Rego Casasnovas
d448c863a9 i18n: Update keys.pot files
FEA: ItEr77S03Community
2012-12-07 14:15:27 +01:00
Manuel Rego Casasnovas
07c68d8103 Bug #1590: Simplify Util.createBindingsFor
Fix 2 issues in Util.createBindingsFor:
* Avoid to go over all the children of the component as it seems enough with
  create the data binder in the root component.
* Avoid to call .loadAll() for each binder as the method Util.reloadBindings is
  usually used before when needed.

FEA: ItEr77S04BugFixing
2012-12-07 13:41:38 +01:00
Manuel Rego Casasnovas
b560e495fa Bug #1590: Avoid go to projects list when creating a project
FEA: ItEr77S04BugFixing
2012-12-07 13:27:46 +01:00
Manuel Rego Casasnovas
7ca0d43883 Bug #1590: Fix problem calling several times the same method in OrderModel
The problem was that OrderModel.getOrders() was been called several times to
show the list of projects.

After reviewing the problem several issues were detected:
* Util.createBindingsFor was always calling .loadAll() for each binder it
  creates, however this was not needed. Moreover a lot of times
  Util.reloadBindings is called just after Util.createBindings so the same thing
  is called twice.
* If you go via the entry point or the icon to the project list, the binder for
  the page is properly initialized or not. If you come from the entry point, the
  binder is already working as expected, however if you come from the icon the
  binder has to be created manually. It has been added a method
  CreatedOnDemandTab.afterCreateAction() that is called or not depending if the
  user comes from the entry point or the icon.

FEA: ItEr77S04BugFixing
2012-12-07 12:01:59 +01:00
Manuel Rego Casasnovas
5a76e6281e Bug #1589: Fix issue using orderVersion for all the elements to be updated or added
FEA: ItEr77S04BugFixing
2012-12-05 11:25:05 +01:00
Manuel Rego Casasnovas
8be20340bf Bug #1586: Fix issue reseting list of checkboxes before adding them
FEA: ItEr77S04BugFixing
2012-12-05 07:30:17 +01:00
Manuel Rego Casasnovas
be15db0de8 Bug #1583: If assignment function is not configurable keep button disabled
FEA: ItEr77S04BugFixing
2012-12-04 16:57:01 +01:00
Manuel Rego Casasnovas
331106824f Bump version number to 1.3.2
FEA: ItEr77S03Community
2012-11-30 07:41:11 +01:00
Manuel Rego Casasnovas
857ff0c533 Only use ConfirmCloseUtil when saving if you are in the UI (not from web services)
FEA: ItEr77S04BugFixing
2012-11-29 13:14:56 +01:00
Manuel Rego Casasnovas
c59a89e24e Avoid confirm close warning when you get a concurrent modification exception
When users clicks on save and the project has been already modified by other
user, it should be redirected to the page explaining the issue without having to
confirm that he is leaving the planning.

FEA: ItEr77S04BugFixing
2012-11-29 13:14:56 +01:00
Manuel Rego Casasnovas
775f643e80 Fix issue deleting a project from the webservice
A NPE was appearing because of the parent of a project is null.

FEA: ItEr77S13AllowDeleteOrderElements
2012-11-29 13:14:56 +01:00
Lorenzo Tilve Álvaro
67c3ec4fa9 Fixed effect which caused previously clicked menu elements to be shown underlined
FEA: ItEr77S04BugFixing
2012-11-29 11:49:20 +01:00
Manuel Rego Casasnovas
3db87e1a3f Fix printing due to change in entry points that now use code instead of id
This regression was introduced in commit fd74722614.

FEA: ItEr77S04BugFixing
2012-11-29 11:29:14 +01:00
Lorenzo Tilve Álvaro
b3f557f58a Fixed NPE when deleting nodes too fast on project or template WBS trees
This was happening when clicking too fast on the node deletion
column on the tree, wich caused an exception due to trying to remove
an already deleted element.

FEA: ItEr77S04BugFixing
2012-11-29 09:58:32 +01:00
Manuel Rego Casasnovas
05132fd5a7 Bug #1562: Fix issue filtering properly resources according to their activation periods
Now the dates filtering the resource load window are checked against the
resources activation periods. Using the following algorithm:

1) If the resource has not activation periods then it should always appear

2) The filter can have null for start and end dates and the activation periods
   can have null for end date. So we should define what to do in each case:

  Let's define some acronyms:
  * Filter Start Date: FSD
  * Filter End Date: FED
  * Activation Period Start Date: APSD (cannot be null)
  * Activation Period End Date: APED

  2.1) FSD is null and FED are null: The resource should appear regardless its
       activation periods

  2.2) FSD is null:
    2.2.1) APED is null: Check if APSD is lower or equals than FED
    2.2.2) APED is not null: Check if APSD is lower or equals than FED or APED
           is lower or equals than FED

  2.3) FED is null:
    2.3.1) APED is null: The resource should appear
    2.3.2) APED is not null: Check if APSD is later or equals than FSD or APED
           is later or equals than FSD

  2.4) FSD is not null and FED is not null:
    2.4.1) APED is null: Check if APSD is between FSD and FED
    2.4.2) APED is not null: Check if activation period overlaps filter period
           at any point

FEA: ItEr77S04BugFixing
2012-11-29 07:16:08 +01:00
Lorenzo Tilve Álvaro
14405cea9d Increased opacity of markers for first and last day with reported hours
FEA: ItEr77S04BugFixing
2012-11-28 11:13:39 +01:00
Lorenzo Tilve Álvaro
b5afe435d4 Shifted right the last reported day marker
This makes the component fit inside the day and overlap when the zoom is
wide enough to make the interval thinner than the sum of the marker widths.

FEA: ItEr77S04BugFixing
2012-11-28 11:08:40 +01:00
Lorenzo Tilve Álvaro
25087fd7ba Changed cursor over gantt bars with fixed properties 2012-11-28 11:08:40 +01:00
Lorenzo Tilve Álvaro
507e799880 Revamped appearance of markers for first and last reported progress dates
FEA: ItEr77S04BugFixing
2012-11-28 11:08:40 +01:00
Lorenzo Tilve Álvaro
f5ef3ecbd6 Replaced browser-prefixed border-radius elements from CSS files
The latest versions of some browsers were about to drop compatibility
whith these prefixes, so just the Candidate Recommendation is kept.

FEA: ItEr77S04BugFixing
2012-11-28 10:44:58 +01:00
Thiago Cangussu
022640235a i18n: Update Portuguese translation
FEA: ItEr77S03Community
2012-11-27 17:53:39 +01:00
Philippe Poumaroux
db7623c606 i18n: Update French translation
FEA: ItEr77S03Community
2012-11-27 17:41:08 +01:00
Jeroen Baten
2a4c79572e i18n: Update Dutch translation
FEA: ItEr77S03Community
2012-11-27 17:35:43 +01:00
Daniel Díaz Sañudo
0fb1b361aa i18n: Update Catalan translation
FEA: ItEr77S03Community
2012-11-27 17:31:49 +01:00
Manuel Rego Casasnovas
560516cc1e i18n: Update Galician translation
FEA: ItEr77S03Community
2012-11-27 17:12:47 +01:00
Manuel Rego Casasnovas
70ade980d0 i18n: Update Spanish translation
FEA: ItEr77S03Community
2012-11-27 17:01:10 +01:00
Manuel Rego Casasnovas
8c81938db6 Fix Bug 1580: Force position recalculation after accepting task properties pop-up
FEA: ItEr77S04BugFixing
2012-11-27 13:36:27 +01:00
Lorenzo Tilve Álvaro
730c33b4d8 Made explicit focused elements on main menu
FEA: ItEr77S04BugFixing
2012-11-27 12:58:00 +01:00
Lorenzo Tilve Álvaro
180bd57685 Fixed side-effect of clickable-rows:hover effect on grids
FEA: ItEr77S04BugFixing
2012-11-27 12:57:44 +01:00
Lorenzo Tilve Álvaro
553505310f Bug #1571: Fixed style on timetracker sencond level width causing a disaligment of 1px per element
This was an important problem on long tasks or projects where the effect was accumulative.

FEA: ItEr77S04BugFixing
2012-11-27 12:57:29 +01:00
Manuel Rego Casasnovas
a2021de728 Bug #1436: Fix issue setting recommended allocation resources per day to 1
FEA: ItEr77S04BugFixing
2012-11-27 09:14:42 +01:00
Manuel Rego Casasnovas
805f65b9ea Add new field to configure seconds for planning warning
FEA: ItEr77S03Community
2012-11-26 18:06:37 +01:00
Manuel Rego Casasnovas
c4f8dc9f50 Fixed permissions in order to set confirm close dialogue properly
FEA: ItEr77S03Community
2012-11-26 17:18:29 +01:00
Manuel Rego Casasnovas
112d990f91 Moved repeated code to ConfirmCloseUtil class
The code to manage confirm close dialogue has been moved to a common class.

FEA: ItEr77S03Community
2012-11-26 17:14:35 +01:00
Lorenzo Tilve Álvaro
25e9184c48 When executing saveCommand the timer on confirmClose is resetted
FEA: ItEr77S03Community
2012-11-26 16:30:10 +01:00
Lorenzo Tilve Álvaro
3a4e0fae55 Internationalized warn message when leaving the planning
FEA: ItEr77S03Community
2012-11-26 16:30:10 +01:00
Lorenzo Tilve Álvaro
16526cf9dd Removed confirmClose warning when leaving project planning after Save Command
It's needed to move the confirmClose method code to saveCommand to enable timer to start again.

FEA: ItEr77S03Community
2012-11-26 16:30:10 +01:00
Lorenzo Tilve Álvaro
1c877bf33c Attached listener to call confirmClose notification
FEA: ItEr77S03Community
2012-11-26 16:30:10 +01:00