Project

General

Profile

« Previous | Next » 

Revision 60977

[new-UI | Admin]:
1. remove-projects.component.html: [Bug fix] When there is no openaireId or no (grantId and funder), show name of project without a link.
2. remove-content-providers.component.ts & remove-projects.component.ts: [Bug fix] In method for filtering by keyword, match all fields with search text.
3. add-content-providers.component.ts & add-projects.component.ts:
a. getCommunityProjectId() --> getCommunityProject() and getCommunityContentProviderId() --> getCommunityContentProvider().
b. [Bug fix] call getCommunityProject() and getCommunityContentProvider() in remove method, to find index and splice deleted project/ content provider.
4. add-content-providers.component.html & add-projects.component.html: Call updated getCommunityProject() and getCommunityContentProvider().

View differences:

remove-content-providers.component.ts
330 330
  }
331 331

  
332 332
  public filterCommunityContentProviderByKeyword(contentProvider): boolean {
333
    const textFlag = this.searchText.toString().toLowerCase() === ''
334
      || (contentProvider.name.toLowerCase() || contentProvider.officialname.toLowerCase()).match(this.searchText) != null;
333
    const textFlag = this.searchText.toString() === ''
334
      || (contentProvider.name + " " + contentProvider.officialname).match(this.searchText) != null;
335 335
    return textFlag;
336 336
  }
337 337

  

Also available in: Unified diff