Changeset e341a60


Ignore:
Timestamp:
01/11/23 13:30:40 (23 months ago)
Author:
DarkoSasanski <darko.sasanski@…>
Branches:
main
Children:
4b34fed
Parents:
3179a2c
Message:

Minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FullyStocked/src/main/java/com/bazi/fullystocked/Web/Controller/WorkerController.java

    r3179a2c re341a60  
    7070        {
    7171            Workers u= (Workers) request.getSession().getAttribute("user");
    72             if(storedArticlesService.findById(articleId).isEmpty())
     72            if(orderedArticlesService.findById(articleId).isEmpty())
    7373            {
    7474                return "redirect:/worker/deliveredArticles";
    7575            }
    76             if(!storedArticlesService.findById(articleId).get().getLocationid().equals(u.getLocation().getLocationid()))
     76            if(!orderedArticlesService.findById(articleId).get().getLocationid().equals(u.getLocation().getLocationid()))
    7777            {
    7878                return "redirect:/login";
Note: See TracChangeset for help on using the changeset viewer.