Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop back to Master for a new release. #493

Merged
merged 120 commits into from
Oct 15, 2020
Merged

Merge develop back to Master for a new release. #493

merged 120 commits into from
Oct 15, 2020

Conversation

RussH
Copy link
Member

@RussH RussH commented Sep 11, 2020

This will be the basis for a PHP 7.2 compatible release from Master.

Kixy25 and others added 30 commits November 29, 2016 19:05
conflicts resolved using master part, so not working code now

# Conflicts:
#	js/lib.js
#	js/quickAction.js
#	lib/TemplateUtility.php
# Conflicts:
#	modules/candidates/CandidatesUI.php
@RussH RussH self-assigned this Oct 15, 2020
@RussH
Copy link
Member Author

RussH commented Oct 15, 2020

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 32
           

Complexity increasing per file
==============================
- js/ckeditor-manager.js  2
- lib/JobOrderStatuses.php  4
- modules/candidates/CandidatesUI.php  10
- lib/ImportableEntity.php  2
- modules/settings/SettingsUI.php  2
- lib/ZipLookup.php  3
- modules/candidates/quickAction-duplicates.js  2
- modules/import/ImportUI.php  6
- lib/ImportUtility.php  9
- lib/Candidates.php  26
- lib/CompaniesImport.php  2
- src/OpenCATS/UI/CandidateDuplicateQuickActionMenu.php  1
- src/OpenCATS/UI/QuickActionMenu.php  1
- lib/ContactsImport.php  2
- lib/CandidatesImport.php  2
         

Complexity decreasing per file
==============================
+ lib/JobOrders.php  -3
         

Clones added
============
- js/emailHandler.js  2
         

See the complete overview on Codacy

function placeCkEditorIn(nodeId)
{
CKEDITOR.replace(nodeId, { extraPlugins: 'font' } );
CKEDITOR.on('instanceReady', function(ev)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -280,7 +288,7 @@ static function create(
$siteId,
$title,
$type,
$status = 0,
$status = \JobOrderStatuses::getDefaultStatus(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Closed / Canceled',
'Upcoming / Lead'
);
private static $_defaultSharingStatuses = array('Active');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$rsTmp = $this->_db->getAllAssoc($sql);

if($rsTmp || count($rsTmp) > 0){
foreach($rsTmp AS $index => $newID){
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
}

private function mergePipelines($oldCandidateID, $newCandidateID){
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Upcoming / Lead'
);
private static $_defaultSharingStatuses = array('Active');
private static $_defaultStatisticsStatuses = array('Active', 'OnHold', 'Full', 'Closed');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
$activeCriterion = "AND (joborder.status IN ('Active', 'OnHold', 'Full'))";
}
$activeCriterion = "AND (joborder.status IN ".JobOrderStatuses::getOpenStatusSQL().")";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -187,6 +181,7 @@ public function getSQL($selectSQL, $joinSQL, $whereSQL, $havingSQL, $orderSQL, $
PIPELINE_STATUS_SUBMITTED,
PIPELINE_STATUS_INTERVIEWING,
PIPELINE_STATUS_OFFERED,
JobOrderStatuses::getOpenStatusSQL(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.




public function mergeDuplicates($params, $rs)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,21 @@

function placeCkEditorIn(nodeId)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -44,7 +44,7 @@ function saveListRow(rowNumber, sessionCookie)
var http = AJAX_getXMLHttpObject();

/* Build HTTP POST data. */
var POSTData = '&savedListID='+rowNumber+'&savedListName='+document.getElementById('savedListRowInput'+rowNumber).value;
var POSTData = '&savedListID='+rowNumber+'&savedListName='+encodeURIComponent(document.getElementById('savedListRowInput'+rowNumber).value);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$listIDs .= $row['listID'];
$listIDs .= ", ";
}
$listIDs = substr($listIDs, 0, strlen($lists) - 2);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
else
{
getReplaceText_AJAX(candidateId, templateText, sessionCookie);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


function placeCkEditorIn(nodeId)
{
CKEDITOR.replace(nodeId, { extraPlugins: 'font' } );
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -314,6 +315,8 @@ public function handleRequest()
*/
private function listByView($errMessage = '')
{
$jobOrderFilters = JobOrderStatuses::getFilters();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$queryResult = mysql_query($sql);
$totalAttachments = mysql_num_rows($queryResult);
$queryResult = mysqli_query($db, $sql);
$totalAttachments = mysqli_num_rows($queryResult);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
var tags = ['p', 'ol', 'ul', 'li']; // etc.

for (var key in tags) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public function __construct($siteID)
{
$this->_siteID = $siteID;
$this->_db = DatabaseConnection::getInstance();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -10,7 +10,7 @@ quickAction.CandidateMenu.prototype.getOptions = function()
var options = quickAction.DefaultMenu.prototype.getOptions.call(this);
if(this.getPermissions().pipelines_addToPipeline)
{
options.push(new quickAction.MenuOption('Add To Pipeline', 'showQuickActionAddToPipeline(' + this.getType() + ');'));
options.push(new quickAction.MenuOption('Add To Job Order', 'showQuickActionAddToPipeline(' + this.getType() + ');'));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1093,6 +1132,794 @@ public function administrativeHideShow($candidateID, $state)

return (boolean) $this->_db->query($sql);
}

public function checkDuplicity($firstName, $middleName, $lastName, $email1, $email2, $phoneHome, $phoneCell, $phoneWork, $address, $city)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


$this->_template->display('./modules/candidates/Show.tpl');

if (!eval(Hooks::get('CANDIDATE_SHOW'))) return;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* @param string wildcard match string
* @return array candidates data
*/
public function all($wildCardString, $sortBy, $sortDirection)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1093,6 +1132,794 @@ public function administrativeHideShow($candidateID, $state)

return (boolean) $this->_db->query($sql);
}

public function checkDuplicity($firstName, $middleName, $lastName, $email1, $email2, $phoneHome, $phoneCell, $phoneWork, $address, $city)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

case JOBORDERS_STATUS_CLOSED:
$statusCriterion = "AND joborder.status = 'Closed'";
case JOBORDERS_STATUS_SHARE:
$statusCriterion = "AND joborder.status IN ".JobOrderStatuses::getShareStatusSQL();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.




public function mergeDuplicates($params, $rs)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RussH RussH merged commit a85053e into master Oct 15, 2020
Copy link
Contributor

@shantadam shantadam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The showTemplate() function need to be repositioned prior to getTemplateTextAJAX() to fix this issue in js/emailHandler.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants