Correct handling of user deletion in global paybacks

This commit is contained in:
Phyks 2013-09-26 18:40:43 +02:00
parent afb7c0ef85
commit e26fd91ff1
3 changed files with 5 additions and 10 deletions

7
TODO
View File

@ -1,9 +1,3 @@
Issues :
========
* Test fr
* Paybacks and user deletion
* Minify CSS / JS
Improvements : Improvements :
============== ==============
* User groups * User groups
@ -11,3 +5,4 @@ Improvements :
* JSON output => do index view * JSON output => do index view
* API * API
* README file * README file
* Minify CSS / JS

View File

@ -29,12 +29,12 @@
<tr> <tr>
<th>Owes / To</th> <th>Owes / To</th>
{loop="$global_paybacks->getUsersIn()->get()"} {loop="$global_paybacks->getUsersIn()->get()"}
<th>{$users[$key1]->getDisplayName()}</th> <th>{if condition="!empty($users[$key1])"}{$users[$key1]->getDisplayName()}{else}Deleted user{/if}</th>
{/loop} {/loop}
</tr> </tr>
{loop="$global_paybacks->getUsersIn()->get()"} {loop="$global_paybacks->getUsersIn()->get()"}
<tr> <tr>
<th>{$users[$key1]->getDisplayName()}</th> <th>{if condition="!empty($users[$key1])"}{$users[$key1]->getDisplayName()}{else}Deleted user{/if}</th>
{loop="$global_paybacks->getUsersIn()->get()"} {loop="$global_paybacks->getUsersIn()->get()"}
{if condition="$key1 == $key2"} {if condition="$key1 == $key2"}
<td class="cell-disabled"></td> <td class="cell-disabled"></td>

View File

@ -28,12 +28,12 @@
<tr> <tr>
<th>Doit / À</th> <th>Doit / À</th>
{loop="$global_paybacks->getUsersIn()->get()"} {loop="$global_paybacks->getUsersIn()->get()"}
<th>{$users[$key1]->getDisplayName()}</th> <th>{if condition="!empty($users[$key1])"}{$users[$key1]->getDisplayName()}{else}Utilisateur supprimé{/if}</th>
{/loop} {/loop}
</tr> </tr>
{loop="$global_paybacks->getUsersIn()->get()"} {loop="$global_paybacks->getUsersIn()->get()"}
<tr> <tr>
<th>{$users[$key1]->getDisplayName()}</th> <th>{if condition="!empty($users[$key1])"}{$users[$key1]->getDisplayName()}{else}Utilisateur supprimé{/if}</th>
{loop="$global_paybacks->getUsersIn()->get()"} {loop="$global_paybacks->getUsersIn()->get()"}
{if condition="$key1 == $key2"} {if condition="$key1 == $key2"}
<td class="cell-disabled"></td> <td class="cell-disabled"></td>