Skip to content

Commit db0b442

Browse files
committed
Merge pull request #236 from kiswa/bugfixes
Merge bugfixes branch
2 parents 71928bb + 8d95a9e commit db0b442

12 files changed

Lines changed: 67 additions & 61 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The server must have `sqlite` and `php5-sqlite` installed, as well as the `rewri
3131

3232
**Note:** For Apache v2.3.9 and later, virtual host for a site should have [`AllowOverride All`](http://httpd.apache.org/docs/2.4/mod/core.html#allowoverride) for TaskBoard root directory. Otherwise, .htaccess files will be completely ignored.
3333

34-
**Optional:** to build minimized JavaScript and CSS (Install step 3) you must have a jre installed, tested with `openjdk-7-jre` and `openjdk-8-jre`.
34+
**Optional:** to build minimized JavaScript and CSS (Install step 3) you must have curl and a jre installed, tested with `openjdk-7-jre` and `openjdk-8-jre`.
3535

3636
###Install
3737

@@ -43,9 +43,9 @@ Installing TaskBoard is as easy as 1, 2, (3), 4!
4343

4444
git clone https://github.com/kiswa/TaskBoard.git
4545

46-
2. Install the PHP dependencies via composer. Open `TaskBoard/build/` in a terminal and run `./composer.phar install`
46+
2. Install the PHP dependencies via composer. Open `TaskBoard/` in a terminal and run `./build/composer.phar install`
4747

48-
3. Open `TaskBoard/build/` in a terminal and run `./build-all`.
48+
3. (Optional) Open `TaskBoard/build/` in a terminal and run `./build-all`.
4949

5050
4. Visit the site and log in with the username and password `admin` (and don't forget to change the password once you're in!).
5151

@@ -116,17 +116,17 @@ If you find a bug, please post it on the [Issue Tracker](https://github.com/kisw
116116
It's silly to use [LOC](http://en.wikipedia.org/wiki/Source_lines_of_code) as a metric, but it can be interesting to see what goes into a project.
117117
This is only for TaskBoard files (library code is excluded), using [CLOC](http://cloc.sourceforge.net/).
118118

119-
Count was done from parent directory of TaskBoard as `./cloc-1.62.pl TaskBoard --exclude-dir=lib,vendor`.
119+
Count was done from parent directory of TaskBoard as `cloc TaskBoard --exclude-dir=lib,vendor`.
120120

121121
Language | Files | Blank Lines | Comments | Code
122122
-------------------|-------:|-------------:|---------:|---------:
123-
Javascript | 23 | 220 | 34 | 2092
124-
PHP | 9 | 233 | 55 | 1216
123+
Javascript | 23 | 220 | 34 | 2087
124+
PHP | 9 | 235 | 55 | 1220
125125
HTML | 24 | 12 | 10 | 1160
126126
CSS | 1 | 13 | 26 | 703
127127
Bourne Again Shell | 4 | 12 | 0 | 58
128128
JSON | 1 | 0 | 0 | 17
129129
XML | 1 | 0 | 0 | 12
130-
__SUM:__ | __63__ | __490__ | __125__ | __5258__
130+
__SUM:__ | __63__ | __492__ | __125__ | __5257__
131131

132-
Counts Last Updated: Jun 6, 2015
132+
Counts Last Updated: Nov 8, 2015

VERSION

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
1-
v0.3.0
1+
v0.3.1
22

33
Changelog
44

5-
* Adding a new Column to a board correctly shows it at the end of the columns.
6-
* The list of boards can be sorted.
7-
* Boards can be marked inactive to disallow using them without deleting.
8-
* The list of boards can be filtered.
9-
* Multiple logins per user are now possible.
10-
* Additional setting to disable animations throughout.
11-
* Expandable text inputs expand vertically and reset size on modal open.
12-
* 'Move to Column' context menu improvements.
13-
* Fix for missing Authorization header on some platforms.
14-
* Fix for missing Automatic Action trigger 'category change'.
15-
* Add ability to have emails sent on several status changes.
16-
* Pulled some inline styles out (two remain, but are required for coloring tasks).
17-
* Add setting to make new tasks appear at top or bottom of columns.
18-
* Removed "No description" text from empty tasks.
19-
* Add setting to hide "Assigned To: Unassigned" on tasks.
5+
* Fix automatic action color change bug.
6+
* Fix new user default board bug.
7+
* Fix boards button bug.
8+
* Fix modal display bug.
9+
* Allow email to be reset to nothing.

api/api.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function exceptionHandler($exception) {
2626
set_exception_handler('exceptionHandler');
2727

2828
R::setup('sqlite:'.__DIR__.'/taskboard.db');
29+
R::setAutoResolve(TRUE);
2930
createInitialUser();
3031

3132
$app->notFound(function() use ($app, $jsonResponse) {

api/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function createInitialUser() {
380380
$options->showAnimations = true;
381381
$options->showAssignee = true;
382382

383-
$admin->ownOptions[] = $options;
383+
$admin->xownOptionList[] = $options;
384384

385385
R::store($admin);
386386
}

api/itemRoutes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
}
146146
$item->position = $posItem->position;
147147

148+
R::store($item);
148149
runAutoActions($item);
149150
R::store($item);
150151
}

api/userRoutes.php

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
if (validateToken()) {
139139
$user = getUser();
140140
if (null != $user) {
141-
$userOptions = R::exportAll($user->ownOption);
141+
$userOptions = R::exportAll($user->xownOptionList);
142142
$options = [
143143
'tasksOrder' => $userOptions[0]['tasks_order'],
144144
'showAssignee' => $userOptions[0]['show_assignee'] == 1,
@@ -163,9 +163,9 @@
163163
if (validateToken()) {
164164
$user = getUser();
165165

166-
$user->ownOption[1]->tasksOrder = $data->tasksOrder;
167-
$user->ownOption[1]->showAssignee = $data->showAssignee;
168-
$user->ownOption[1]->showAnimations = $data->showAnimations;
166+
$user->xownOptionList[0]->tasksOrder = $data->tasksOrder;
167+
$user->xownOptionList[0]->showAssignee = $data->showAssignee;
168+
$user->xownOptionList[0]->showAnimations = $data->showAnimations;
169169
R::store($user);
170170

171171
$jsonResponse->data = $data;
@@ -198,15 +198,20 @@
198198
$user->defaultBoard = $data->defaultBoard;
199199
$user->salt = password_hash($data->username . time(), PASSWORD_BCRYPT);
200200
$user->password = password_hash($data->password, PASSWORD_BCRYPT, array('salt' => $user->salt));
201+
201202
$options = R::dispense('option');
202-
$options->newTaskPosition = 0; // Bottom of column (1 == top of column)
203-
$options->animate = true;
204-
$user->ownOptions = $options;
203+
$options->tasksOrder = 0; // Bottom of column (1 == top of column)
204+
$options->showAnimations = true;
205+
$options->showAssignee = true;
206+
$user->xownOptionList[] = $options;
205207

206208
R::store($user);
207209
addUserToBoard($data->defaultBoard, $user);
208-
foreach($data->boardAccess as $board) {
209-
addUserToBoard($board, $user);
210+
211+
if (property_exists($data, 'boardAccess') && is_array($data->boardAccess)) {
212+
foreach($data->boardAccess as $board) {
213+
addUserToBoard($board, $user);
214+
}
210215
}
211216

212217
$actor = getUser();

build/composer.phar

43.3 KB
Binary file not shown.

composer.lock

Lines changed: 18 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/styles.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,9 @@ span.filter {
547547
float: left;
548548
margin-bottom: 1em;
549549
}
550+
.board-options label {
551+
font-weight: normal;
552+
}
550553
#changeUserSettings hr, .board-options hr {
551554
clear: both;
552555
}

js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function($routeProvider, $httpProvider) {
5353
// Custom handlers for route authentication and rejection of invalid board id
5454
taskBoard.run(['$rootScope', '$location', '$window', 'AuthenticationService',
5555
function($rootScope, $location, $window, AuthenticationService) {
56-
$rootScope.version = 'v0.3.0';
56+
$rootScope.version = 'v0.3.1';
5757

5858
$rootScope.$on('$routeChangeStart', function(event, nextRoute, currentRoute) {
5959
// Redirect to default path if authentication is required but not present.

0 commit comments

Comments
 (0)