Profile2 have been release the 7.x-1.6 version but is not working with Recruiter 7.x.1.14
Previously Recruiter used the "Job Desired" Field but now Profile2 7.x-1.6 put an uncomfortable title " profile for " <- That's is a really bad title .

How can I fix this issue?

I'm downgrading to Profile2 7.x.1.5

CommentFileSizeAuthor
#3 example.png208.48 KBoemb29
#2 recruiter-profile2_1.6-3027716-2.patch1.23 KBrickj

Comments

oemb29 created an issue. See original summary.

rickj’s picture

StatusFileSize
new1.23 KB

As maintainer for the profile2 module I've taken a look at this. It looks like it's down to the additional "content_types" plugin that's not part of the standard profile2 module, and the code needs updating.

Here's a patch that should fix it. The patch should be compatible with the embedded profile2 v1.3 as well. The paths in the patch are relative to the base directory of the distribution, I'm not sure quite what's expected for a distribution project.

HTH

oemb29’s picture

StatusFileSize
new208.48 KB

Thanks @RickJ

With Profile2 7.x-1.5 (Previous version) display this:

Example

But now Profile2 7.x-1.6 show "Main profile for John" instead "Industrial Designer"
I'm looking in Rules Module has a rule that Set a Label to Profile Tittle:

This is the export view:

{ "rules_resume_set_label" : {
    "LABEL" : "Resume set label",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "TAGS" : [ "recruiter_resume" ],
    "REQUIRES" : [ "rules", "profile2" ],
    "ON" : { "profile2_update" : [] },
    "IF" : [
      { "data_is" : { "data" : [ "profile2:type" ], "value" : "resume" } },
      { "NOT data_is_empty" : { "data" : [ "profile2:field-resume-job-preferences" ] } },
      { "NOT data_is" : {
          "data" : [ "profile2:label" ],
          "value" : [ "profile2:field-resume-job-preferences:field-resume-job-title" ]
        }
      }
    ],
    "DO" : [
      { "data_set" : {
          "data" : [ "profile2:label" ],
          "value" : [ "profile2:field-resume-job-preferences:field-resume-job-title" ]
        }
      }
    ]
  }
}
rickj’s picture

I'm a bit confused. Where is the title "Industrial Designer" configured or entered? It's not the name of the profile type, that must be "Main". Is it a value that is different per-user?

Thanks.

oemb29’s picture

@RickJ

Recruiter has a function that when the candidate put the Job Desire or Job Title located on Job Preferences Field collection (profile2:field-resume-job-preferences:field-resume-job-title) execute a rule and change the Profile Title for a friendly title (Industrial Designer)

I'm trying to modify this rule with new profile2 version but it isn't compatible

Any help I'll appreciate it

Thanks

rickj’s picture

@oemb29

Ah, that starts to make sense. This may be the only case where the profile label is actually directly editable. Handling of profile titles seems never to have been properly completed in profile2, resulting in all kinds of anomalies. The title mechanism in 1.6 ignores the label in the database record, and constructs a title from the profile type and user name, which in the absence of anything else gives the most consistent results. But obviously doesn't work here.

I've been toying with an option of allowing the user to edit their own profile title, as with nodes. I think this would work for Recruiter. Does it use Profile2 Pages? What I have in mind would require running with profiles in a separate page.

oemb29’s picture

@RickJ

Yes, Profile2 Pages is enable
Please give me your recommendation

Thanks

rickj’s picture

@oemb29

Stick with build 1.5 for now. I need to code and test a patch, I'll aim to get it sorted in the next few days.

Thanks for your patience.

rickj’s picture

@oemb29

I've raised this as an enhancement issue against profile2: #3029027: Allow entry and display of profile title.

Please give it a try and let me know results.

Thanks

oemb29’s picture

Hi @RichJ

I patched Profile2 with your update #3029027 and I enabled the "Allow the profile title to be edited." option but I got this message:

TYPE access denied
DATE Friday, February 1, 2019 - 07:52
USER IT
LOCATION .../resume/169
REFERRER .../admin/user_detail?render=overlay
MESSAGE resume/169
SEVERITY warning

Any Profile is denied access with my user1 login

I've returned to 7.x-1.5

rickj’s picture

Hmm, is that a message in the log?

What action caused it - when you changed the setting for the profile title, or when you viewed the profile?

oemb29’s picture

@RickJ

Yes,

I did "Allow the profile title to be edited." option checked and view any profile page is access denied
I disabled "Allow the profile title to be edited." option and view any profile page the access is permit

Thank for your help

rickj’s picture

@oemb29

Do you have translation enabled, and do you have the profile2 i18n sub-module installed? I can only think it's related to that in some way. If that's the case I know where to look.

Thanks.

oemb29’s picture

@RickJ

No, only use English language, no translations. Recruiter i18n is disable

rickj’s picture

Sorry about the delay coming back on this. There was a detail in that patch in #3029027: Allow entry and display of profile title that could have created the problem. I've changed it in a new #3 patch, please try it if you can and let me know.

Thanks.