Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Unable to delete an...
 
Notifications
Clear all

Unable to delete an assignation in an activity

6 Posts
2 Users
0 Reactions
4,299 Views
Damien
(@dnaton)
Posts: 248
Active Member
Topic starter
 
[#4385]

Hello,

I have an activity, with 3 "sub-activites", like this

The "main" activity has 3 assignations, with no input work :

One of the "sub-activity" hase 4 assignations (3 are the same as the main activity, 2 are specific to the sub-activity

My problem appear when I want to delete one of the assigation of this sub-activity

When I try to delete Quentin, I have this message :

When I try to delete Adil, Vincent, I have the same message, except (1) that replace (4)
When I try to delete Sébastien or Jérôme, it works....

I don't understand why happend :huh:

No ressources has assigned work, or real work...and some ressources can be deleted, some other no :huh:

Can somebody explain me what I do that is not correct ?

Thanks


Regards,
Damien
-----------------------------------------------
.
ProjeQtOr v12.1.0 - Apache v2.4.56 - MariaDB v10.4.28 - PHP v8.2.4
Plugins installed : PersonalizedTranslation 1.6 - ScreenCustomization 7.2

 
Posted : 30 May 2017 10H56
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Please give us result of following queries :

SELECT w.id as workId, w.idResource as idResource, w.work as work FROM work w WHERE w.refType='Activity' and w.refId=659;
 
SELECT w.id as workId, w.idResource as idResource, w.work as work, a.id as idAssignment FROM work w, assignment a WHERE w.idAssignment=a.id and a.refType='Activity' and a.refId=659;


 
Posted : 31 May 2017 21H32
Damien
(@dnaton)
Posts: 248
Active Member
Topic starter
 

Hello Babynus,

After the execution of the first SQL request, here is what PhPMyAdmin return

After the second SQL request :

One precision

  • My tables begin all with prefix prj, that why I modified the SQL request to take this point into account.

Regards,
Damien
-----------------------------------------------
.
ProjeQtOr v12.1.0 - Apache v2.4.56 - MariaDB v10.4.28 - PHP v8.2.4
Plugins installed : PersonalizedTranslation 1.6 - ScreenCustomization 7.2

 
Posted : 06 Jun 2017 18H51
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

You have issue with 6 lines of work returned by second query : they are linked to assignments referencing the activity, but not to the activity itself.

Please give result for :

select * from prjwork where id in (32,33,34,35,50,94);

It will return the corresponding lines.
Go to corresponding week / resource on Real Work allocation screen and remove work.
You'll then be able to delete assignments.


 
Posted : 11 Jun 2017 18H27
Damien
(@dnaton)
Posts: 248
Active Member
Topic starter
 

Hello

I executed the SQL request

SELECT * FROM prjwork WHERE id IN (32,33,34,35,50,94);

and have this result

For the ressource 92 on the project 98, I go to corresponding week / resource on Real Work allocation screen to remove work but there is no work entered

For the ressource 15 on the project 95, I go to corresponding weeks / resource on Real Work allocation screen to remove work but there is no work entered

For the week 49

For the week 50

For the week 51

I can't delete real workload because I don't have anything in the field mentionned in the request 🙁


Regards,
Damien
-----------------------------------------------
.
ProjeQtOr v12.1.0 - Apache v2.4.56 - MariaDB v10.4.28 - PHP v8.2.4
Plugins installed : PersonalizedTranslation 1.6 - ScreenCustomization 7.2

 
Posted : 12 Jun 2017 12H03
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

It is very weird as work lines do not reference the activities you were dealing with.
First 4 lines reference activity 270 but you were dealing with activities 658 and 659.
Moreover, you access real work for reasource 15, called Damien, and there were no Danien in Assignments for Activities #658 and 659.
I cannot understand, and I'm afraid I won't be able to help without a version of database to investigate. 🙁


 
Posted : 13 Jun 2017 2H51
Share:

Scroll to Top