fix wrong nick and api sql query
This commit is contained in:
parent
2716c63648
commit
4414358cf5
|
@ -213,7 +213,7 @@ function user_angeltype_delete_controller() {
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
_("Remove angeltype"),
|
_("Remove angeltype"),
|
||||||
UserAngelType_delete_view($user_angeltype, $user, $angeltype)
|
UserAngelType_delete_view($user_angeltype, $user_source, $angeltype)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,8 @@ function NeededAngelTypes_by_shift($shiftId) {
|
||||||
SELECT `NeededAngelTypes`.*, `AngelTypes`.`name`, `AngelTypes`.`restricted`
|
SELECT `NeededAngelTypes`.*, `AngelTypes`.`name`, `AngelTypes`.`restricted`
|
||||||
FROM `NeededAngelTypes`
|
FROM `NeededAngelTypes`
|
||||||
JOIN `AngelTypes` ON `AngelTypes`.`id` = `NeededAngelTypes`.`angel_type_id`
|
JOIN `AngelTypes` ON `AngelTypes`.`id` = `NeededAngelTypes`.`angel_type_id`
|
||||||
WHERE `room_id`=" . sql_escape($shiftId) . "
|
JOIN `Shifts` ON `Shifts`.`RID` = `NeededAngelTypes`.`room_id`
|
||||||
|
WHERE `Shifts`.`SID`=" . sql_escape($shiftId) . "
|
||||||
AND `count` > 0
|
AND `count` > 0
|
||||||
ORDER BY `room_id` DESC
|
ORDER BY `room_id` DESC
|
||||||
");
|
");
|
||||||
|
|
Loading…
Reference in New Issue